Eric Blake wrote:
On 02/11/2012 04:23 AM, Jim Meyering wrote:
+++ b/NEWS
...
+ mv A B could succeed, yet A would remain. This would happen only when
+ both A and B were hard links to the same symlink, and with a kernel for
+ which rename(A,B) would do nothing and return 0. Now, in this
Jim Meyering wrote:
The above wasn't quite right in that it failed to honor mv's --backup
option. mv --backup s f would not have created the required backup file.
I've adjusted it to fix that, and added tests to cover both cases.
This is still not quite ready (i.e., the FIXME comment, where
On 02/11/2012 04:23 AM, Jim Meyering wrote:
+++ b/NEWS
@@ -11,6 +11,11 @@ GNU coreutils NEWS-*-
outline -*-
referent, there is no risk of data loss, since the symlink will
typically still point to one of the hard links.
+ mv A B could succeed,
On 02/07/2012 11:45 AM, Michael Felt wrote:
Just reading - for reference only - AIX 5.3, and I expect new versions behave
as follows
(second link becomes a hardlink to original file, mv removes one hard link,
i.e. original file (as inode) remains.
root@x105:[/tmp/test]touch f
On 02/04/2012 04:49 PM, Jim Meyering wrote:
The above wasn't quite right in that it failed to honor mv's --backup
option. mv --backup s f would not have created the required backup file.
I've adjusted it to fix that, and added tests to cover both cases.
This is still not quite ready (i.e.,
Jim Meyering wrote:
Eric Blake wrote:
On 02/01/2012 05:47 AM, Jim Meyering wrote:
Bernhard Voelker wrote:
Playing around with the latest mv checkin,
I noticed another corner case:
Create a file 'f', a symlink 'l' to it, and
then a hardlink 's' to that symlink:
$ touch f ln -s f l
Playing around with the latest mv checkin,
I noticed another corner case:
Create a file 'f', a symlink 'l' to it, and
then a hardlink 's' to that symlink:
$ touch f ln -s f l ln l s ls -ogi
total 0
6444 -rw-r--r-- 1 0 Feb 1 08:52 f
6462 lrwxrwxrwx 2 1 Feb 1 08:52 l - f
6462
On 02/01/2012 09:21 AM, Bernhard Voelker wrote:
$ touch f ln -s f l ln l s ls -ogi
total 0
6444 -rw-r--r-- 1 0 Feb 1 08:52 f
6462 lrwxrwxrwx 2 1 Feb 1 08:52 l - f
6462 lrwxrwxrwx 2 1 Feb 1 08:52 s - f
Trying to mv the hardlink over the symlink seems to succeed:
$
Bernhard Voelker wrote:
Playing around with the latest mv checkin,
I noticed another corner case:
Create a file 'f', a symlink 'l' to it, and
then a hardlink 's' to that symlink:
$ touch f ln -s f l ln l s ls -ogi
total 0
6444 -rw-r--r-- 1 0 Feb 1 08:52 f
6462 lrwxrwxrwx 2 1
On 02/01/2012 01:47 PM, Jim Meyering wrote:
Bernhard Voelker wrote:
Playing around with the latest mv checkin,
I noticed another corner case:
Create a file 'f', a symlink 'l' to it, and
then a hardlink 's' to that symlink:
$ touch f ln -s f l ln l s ls -ogi
total 0
6444
Bernhard Voelker wrote:
...
well, if it's not standardized (yet), then I agree with you that we
should choose the simpler b) alternative.
Do you think it's work thinking about the -f case?
$ ~/git/coreutils/src/mv -f s l
/home/berny/git/coreutils/src/mv: āsā and ālā are the same file
On 02/01/2012 03:02 PM, Jim Meyering wrote:
Bernhard Voelker wrote:
...
well, if it's not standardized (yet), then I agree with you that we
should choose the simpler b) alternative.
Do you think it's work thinking about the -f case?
$ ~/git/coreutils/src/mv -f s l
On 02/01/2012 05:47 AM, Jim Meyering wrote:
Bernhard Voelker wrote:
Playing around with the latest mv checkin,
I noticed another corner case:
Create a file 'f', a symlink 'l' to it, and
then a hardlink 's' to that symlink:
$ touch f ln -s f l ln l s ls -ogi
total 0
6444
Eric Blake wrote:
On 02/01/2012 05:47 AM, Jim Meyering wrote:
Bernhard Voelker wrote:
Playing around with the latest mv checkin,
I noticed another corner case:
Create a file 'f', a symlink 'l' to it, and
then a hardlink 's' to that symlink:
$ touch f ln -s f l ln l s ls -ogi
Bernhard Voelker wrote:
On 02/01/2012 04:45 PM, Jim Meyering wrote:
Thanks for the clarification and quotes, Eric.
Bernhard, here's a better patch.
With it, mv simply unlinks the s in your example:
diff --git a/src/copy.c b/src/copy.c
index 4810de8..73f5cc5 100644
--- a/src/copy.c
+++
15 matches
Mail list logo