[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cp failure to NetApp directory with CIFS security model
From: |
Eric Blake |
Subject: |
Re: cp failure to NetApp directory with CIFS security model |
Date: |
Thu, 01 Nov 2007 18:48:29 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Paul Eggert on 11/1/2007 2:27 PM:
> Clarence Donath <address@hidden> 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 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
iD8DBQFHKnPd84KuGfSFAYARAsNnAJ9IzwgKnjvn1KR21KInWcjCDbDu4QCgqL2g
drUS4KGXP6PnwXPUERanpw4=
=wbfu
-----END PGP SIGNATURE-----