packages: mailcap/run-mailcap - we got no tempfile in PLD (it's debianutils...
gotar
gotar at pld-linux.org
Thu May 28 01:33:21 CEST 2009
Author: gotar Date: Wed May 27 23:33:21 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- we got no tempfile in PLD (it's debianutils), use mktemp instead
---- Files affected:
packages/mailcap:
run-mailcap (1.3 -> 1.4)
---- Diffs:
================================================================
Index: packages/mailcap/run-mailcap
diff -u packages/mailcap/run-mailcap:1.3 packages/mailcap/run-mailcap:1.4
--- packages/mailcap/run-mailcap:1.3 Thu May 28 01:04:35 2009
+++ packages/mailcap/run-mailcap Thu May 28 01:33:16 2009
@@ -134,9 +134,10 @@
# $tmpfile = POSIX::tmpnam($name);
# unlink($tmpfile);
- $cmd = "tempfile --mode=600";
- $cmd .= " --prefix $head" if $head;
- $cmd .= " --suffix $tail" if $tail;
+ $cmd = "mktemp -t "; # -t is depreciated, but --tmpdir would not be handled by older mktemp
+ $cmd .= "$head" if $head;
+ $cmd .= ".$tail" if $tail;
+ $cmd .= "XXXXXX";
$tmpfile = `$cmd`;
chomp($tmpfile);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mailcap/run-mailcap?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list