Re: O_NOFOLLOW and safer chdir

2005-12-22 Thread Corinna Vinschen
On Dec 22 15:14, Eric Blake wrote: > CVS coreutils now uses 's O_NOFOLLOW, when > available, to avoid a data race when changing directories while > avoiding symlinks (necessary for some traversal algorithms). Normally, > calling lstat() to prove something is a directory, followed by chdir(), > is

O_NOFOLLOW and safer chdir

2005-12-22 Thread Eric Blake
CVS coreutils now uses 's O_NOFOLLOW, when available, to avoid a data race when changing directories while avoiding symlinks (necessary for some traversal algorithms). Normally, calling lstat() to prove something is a directory, followed by chdir(), is a security risk, since lstat() could see a di