() Eric Blake <[email protected]>
() Fri, 12 Mar 2010 20:51:59 -0700

   Seems like it might be a reasonable thing to add to mktemp(1).  But
   mktemp already generates 0600 by default.

That's fine as it is, then.  No change needed.

   What does tempfile(1) do that mktemp(1) does not?

Not sure.

Anyway, i will be using mktemp in rcsfreeze.sh.  Thanks for the pointer.
To close, attached is a (tiny change) doc patch that likewise uses mktemp.

thi


________________________________
>From 348f1b15016496f134c79736930d4da299412fc5 Mon Sep 17 00:00:00 2001
From: Thien-Thi Nguyen <[email protected]>
Date: Sat, 13 Mar 2010 05:34:15 +0100
Subject: [PATCH] doc: Use coreutils program in shred(1) example.

* doc/coreutils.texi (shred invocation):
Use mktemp(1) instead of Debian-specific tempfile(1).

Signed-off-by: Thien-Thi Nguyen <[email protected]>
---
 doc/coreutils.texi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 3e7a698..34ccf5a 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -8718,7 +8718,7 @@ The intended use of this is to shred a removed temporary file.
 For example:
 
 @example
-i=`tempfile -m 0600`
+i=`mktemp`
 exec 3<>"$i"
 rm -- "$i"
 echo "Hello, world" >&3
-- 
1.6.3.2

Reply via email to