bug-coreutils
[Top][All Lists]
Advanced

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

Re: is this a bug?


From: Eric Blake
Subject: Re: is this a bug?
Date: Tue, 11 Dec 2007 18:52:57 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Andreas Schwab on 12/11/2007 1:13 PM:
> 
> You need write access to the containing directory when you want to
> remove a file.  That's how permissions work in Unix since day one.

It doesn't help that Windows behaves differently - by default, Windows
allows non-root owners to delete files from unwritable directories (also
known as traverse bypass processing, since it bypasses the permissions
check on the directories traversed to reach the final file).  And even
though this default can be changed with proper ACLs, several Windows
programs assume this extended deletion privilege is universal, and choke
when POSIX-style ACLs are enforced.  Several tests in the coreutils
testsuite fail on cygwin when CYGWIN=traverse is not set in the
environment, because of this root-like ability to delete more than what
the Unix permissions allow.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHXz7484KuGfSFAYARAmLZAKCNhp9QBs6S8ANW4EDUsxOTrYPGSACg1DiB
6/9bpTmK0dfhhgmwFQrMSJ8=
=gK3B
-----END PGP SIGNATURE-----




reply via email to

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