lkml.org 
[lkml]   [1999]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] Bug in mkdir(2)


On Wed, 16 Jun 1999, Douglas Weimer wrote:

> Following symlinks can be useful at times. It is the root-owned
> processes responsibility to check for symlinks in /tmp. This argument
> can be used for any file manipulation in a globally writable directory.
> Both mkdir("foo") and mkdir("foo/") should follow symlinks for
> consistency purposes.

The latter - yes, the former - hell, NO. That would be incompatible with
the helluva lot of systems, Linux 2.0 and 2.2 included. If adding a traing
slash enforces symlink expansion - so be it, but making mkdir() always
follow links... No, thanks. Besides, if you are thinking about lstat() -
think of associated races.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.054 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site