]> git.pld-linux.org Git - packages/mailcap.git/blob - run-mailcap-mktemp.patch
run-mailcap updated from upstream (Debian mime-support) 3.48 to 3.60
[packages/mailcap.git] / run-mailcap-mktemp.patch
1 --- run-mailcap 2018-04-02 09:44:40.000000000 +0200
2 +++ run-mailcap 2018-04-02 09:51:19.000000000 +0200
3 @@ -141,9 +141,10 @@
4  #   $tmpfile = POSIX::tmpnam($name);
5  #   unlink($tmpfile);
6  
7 -    $cmd  = "tempfile --mode=600";
8 -    $cmd .= " --prefix $head" if $head;
9 -    $cmd .= " --suffix $tail" if $tail;
10 +    $cmd  = "mktemp -t ";      # -t is depreciated, but --tmpdir would not be handled by older mktemp
11 +    $cmd .= "$head" if $head;
12 +    $cmd .= ".$tail" if $tail;
13 +    $cmd .= "XXXXXX";
14  
15      $tmpfile = `$cmd`;
16      chomp($tmpfile);
This page took 0.067443 seconds and 3 git commands to generate.