run-mailcap: replaced tempfile tool

This commit is contained in:
Stefan Mühlinghaus 2017-02-21 20:41:59 +01:00 committed by Christian Neukirchen
parent 7b0fee666c
commit f93e859330
2 changed files with 17 additions and 1 deletions

View file

@ -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);

View file

@ -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"