run-mailcap: replaced tempfile tool
This commit is contained in:
parent
7b0fee666c
commit
f93e859330
|
@ -0,0 +1,16 @@
|
|||
Replace unknown "tempfile" tool with "mktemp" from coreutils
|
||||
|
||||
--- run-mailcap.orig 2017-02-21 20:26:27.367144678 +0100
|
||||
+++ run-mailcap 2017-02-21 20:25:51.576143081 +0100
|
||||
@@ -141,9 +141,9 @@
|
||||
# $tmpfile = POSIX::tmpnam($name);
|
||||
# unlink($tmpfile);
|
||||
|
||||
- $cmd = "tempfile --mode=600";
|
||||
- $cmd .= " --prefix $head" if $head;
|
||||
+ $cmd = "mktemp";
|
||||
$cmd .= " --suffix $tail" if $tail;
|
||||
+ $cmd .= " $head" if $head;
|
||||
|
||||
$tmpfile = `$cmd`;
|
||||
chomp($tmpfile);
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'run-mailcap'
|
||||
pkgname="run-mailcap"
|
||||
version="3.60"
|
||||
revision=1
|
||||
revision=2
|
||||
short_desc="Execute programs via entries in the mailcap file"
|
||||
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
|
||||
license="Public Domain"
|
||||
|
|
Loading…
Reference in New Issue