bug-coreutils
[Top][All Lists]
Advanced

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

Re: bug in chdir-safer


From: Paul Eggert
Subject: Re: bug in chdir-safer
Date: Mon, 26 Dec 2005 20:17:47 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Jim Meyering <address@hidden> writes:

> I recognize the value of the added open-with-O_WRONLY,
> but note that it's wasted on modern Linux systems.

Come to think of it, it's wasted on any system that conforms to POSIX,
since POSIX requires that open-with-write-access must fail on
directories.  I think I'm responsible for that O_WRONLY business, but
I don't recall what I tried it out on -- perhaps SunOS 4?

I don't think it's worth worrying about non-POSIX systems, so I'll
prepare a patch that undoes that stuff (both here and elsewhere).
There are some related things that need normalizing, too, e.g.,
whether to open directories with O_NONBLOCK, O_DIRECTORY, and the like.




reply via email to

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