> mktemp /tmp/$0.$$.XXXXX 

The problem here is that you are using too short template. Try:

mktemp /tmp/$0.$$.XXXXXXXXXXXXXXXXXXXXXXX

using only 5 * X as in your version makes your app quite possibly
brute-forceable.

> This is the way it should be (Opensuse):

I suspect opensuse uses the gnu coreutils version of mktemp?

> I suggest you use

> a) a mixture of letters and numbers for mktemp 

Which is what mktemp does. You might want to read the manpage
of mktemp. Agreed, that using pid as part of filling the "XXXX"
is quite pointless thou. Alternatively mktemp could require a
minimum of X chars.

-- 
"rm -rf" only sounds scary if you don't have backups



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to