Re: [RFC] Bug in mkdir(2)

Steve Dodd (dirk@loth.demon.co.uk)
Wed, 16 Jun 1999 22:33:12 +0100


On Wed, Jun 16, 1999 at 04:59:10PM -0400, 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.

Ick, no. Whatever mkdir("foo/") does, mkdir("foo") should return EEXIST if
foo is a symlink. Anything else would be plain weird.

-- 
Mommy, where were you when Demon sold out its customers to cover its ass?

- 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/