Re: New rename(2) function

2007-08-03 Thread Eric Blake
Eric Blake byu.net> writes: > > However, there is still a bug: And another bug, involving the rename of a directory onto a broken symlink. On Linux: $ mkdir a $ ln -s b c $ mv a c/ mv: cannot overwrite non-directory `c' with directory `a' $ ./rename a c/ result -1, errno 20: Not a directory

Re: New rename(2) function

2007-08-03 Thread Eric Blake
Eric Blake byu.net> writes: > > "If the old argument and the new argument resolve to the same existing file, > rename() shall return successfully and perform no other action." Looks like this part works in the latest snapshot. Thanks for the implementation. However, there is still a bug: $

Re: New rename(2) function

2007-08-01 Thread Eric Blake
> Corinna wrote: [Bah - gmane can't post to cygwin-devel, so I'm cross-posting (in order to reply now, rather than waiting till when I'm home).] > > Also, where do you check that rename("a","a") is a successful no-op, as > > well as rename("a","b") when a and b are hard links to the same inode >