Is command 'mktemp' portable?



Hello,

I'm having patches for fix problem with security of mc.
It's good candidate for commiting into CVS tree now.
But, this patches was used mktemp, e.g.

         MAN=%{Enter name of man:}
-        TMPFILE=/tmp/mcview.$MAN.$$
+        TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/mcview.$MAN.$$` || exit 1
         man -Pcat $MAN >$TMPFILE
         mcview $TMPFILE
         rm -f $TMPFILE

Is command 'mktemp' portable?

P.S.: Sorry for bad English.

-- 
Best regards,
 Pavel                          mailto:pavelsh mail ru




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]