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

According to Paul Eggert on 11/1/2007 2:27 PM:
> Clarence Donath <[EMAIL PROTECTED]> writes:
> 
>> open("/p/inet/cron", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0644) = -1
>> EPERM (Operation not permitted)
> 
>> The resultant destination file is created, but left empty by 'cp'.
> 
> Wow, open() creates the file but then returns -1?  That's a serious
> bug in the OS or the filer.

FWIW, CVS cygwin had a similar bug for about a one month window a while
ago: http://cygwin.com/ml/cygwin/2007-09/msg00407.html
I found it very annoying when using cygwin snapshots where mv would fail
but cp succeed, all because open was creating the file while returning -1.
 Fortunately, current cygwin snapshots no longer have this bug.

> 
> I don't offhand see an easy way to work around this bug in coreutils,
> without introducing some performance problems (or security holes) on
> non-buggy systems.

Agreed.  I would push back on the CIFS people to fix their bug.

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

Eric Blake             [EMAIL PROTECTED]
-----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

iD8DBQFHKnPd84KuGfSFAYARAsNnAJ9IzwgKnjvn1KR21KInWcjCDbDu4QCgqL2g
drUS4KGXP6PnwXPUERanpw4=
=wbfu
-----END PGP SIGNATURE-----


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to