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
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:
$
> 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
>
3 matches
Mail list logo