otpasswd-talk
[Top][All Lists]
Advanced

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

Re: [Otpasswd-talk] State update problem


From: Luke Faraone
Subject: Re: [Otpasswd-talk] State update problem
Date: Sat, 26 Dec 2009 16:57:10 -0800

On Sat, Dec 26, 2009 at 16:44, Tomasz bla Fortuna <address@hidden> wrote:

In /tmp I'd have to check if file doesn't exists, use random name, hm.

Use mkstemp(), a function designed specifically for this purpose. (which returns a file descriptor)

Secure Programming for UNIX has a chapter on this which goes into more detail.

--
Luke Faraone
http://luke.faraone.cc

reply via email to

[Prev in Thread] Current Thread [Next in Thread]