login
Header Space

 
 

Re: O_NOLINK for open()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Brent Casavant <bcasavan@...>
Cc: <linux-kernel@...>
Date: Wednesday, September 12, 2007 - 5:46 pm

Brent Casavant wrote:

Avoiding -- or at least detecting -- symlink racing with mkdir() is
relatively simple: run mkdir(), make sure you don't get EEXIST or
something like that, lstat() the resulting path -- it should be a
directory with all the right modes and ownerships.

I believe -- but I'm not certain -- that mkdtemp() in glibc will do all
this for you.  If not, I would consider that a glibc bug.

	-hpa
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
O_NOLINK for open(), Brent Casavant, (Wed Sep 12, 4:37 pm)
Re: O_NOLINK for open(), Gabor Gombas, (Thu Sep 13, 6:08 am)
Re: O_NOLINK for open(), Brent Casavant, (Thu Sep 13, 12:05 pm)
Re: O_NOLINK for open(), Andreas Schwab, (Wed Sep 12, 5:42 pm)
Re: O_NOLINK for open(), Brent Casavant, (Wed Sep 12, 6:44 pm)
Re: O_NOLINK for open(), Al Viro, (Wed Sep 12, 6:49 pm)
Re: O_NOLINK for open(), Brent Casavant, (Wed Sep 12, 7:27 pm)
Re: O_NOLINK for open(), Goswin von Brederlow, (Fri Sep 14, 12:37 pm)
Re: O_NOLINK for open(), Brent Casavant, (Wed Sep 12, 7:48 pm)
Re: O_NOLINK for open(), H. Peter Anvin, (Wed Sep 12, 5:07 pm)
Re: O_NOLINK for open(), Brent Casavant, (Wed Sep 12, 5:39 pm)
Re: O_NOLINK for open(), H. Peter Anvin, (Wed Sep 12, 5:46 pm)
speck-geostationary