public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [1.7] rename/renameat error
@ 2009-09-07 15:48 Eric Blake
  2009-09-07 19:21 ` Corinna Vinschen
  0 siblings, 1 reply; 9+ messages in thread
From: Eric Blake @ 2009-09-07 15:48 UTC (permalink / raw)
  To: cygwin

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

POSIX states that rename must fail with EINVAL if either argument ends in
'.' or '..' (after trailing slashes are stripped).  Cygwin 1.7 is
detecting this situation (which is a step up from 1.5 which did the rename
anyways), but sets errno to EBUSY instead of EINVAL.

$ mkdir d1 d2
$ mv -T d1/. d2 # the -T forces a raw rename("d1/.","d2")
mv: cannot move `d1/.' to `d2': Device or resource busy

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

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

iEYEARECAAYFAkqlK14ACgkQ84KuGfSFAYDdDwCfYSdpMnuGmEM9b6ux4vTRJV9I
UkAAnR6R7WPbGfgYr31xDxAxecWOu3BD
=O2KC
-----END PGP SIGNATURE-----

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-09-23 14:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-07 15:48 [1.7] rename/renameat error Eric Blake
2009-09-07 19:21 ` Corinna Vinschen
2009-09-08 22:56   ` Eric Blake
2009-09-09 16:37     ` Eric Blake
2009-09-09 17:43       ` Christopher Faylor
2009-09-21 10:46         ` Corinna Vinschen
2009-09-22 21:02       ` Eric Blake
2009-09-23  9:22         ` Corinna Vinschen
2009-09-23 14:01           ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).