Thanks for the report.
That's fixed in the latest test release.
ftp://alpha.gnu.org/gnu/fetish/
Andrew Mauer-Oats <[EMAIL PROTECTED]> writes:
| System: Solaris 2.7
|
| $ mv --version
| mv (GNU fileutils) 4.0
| $ mkdir a b
| $ mv --verbose a b b
| a -> b/a
| b -> b/b
| mv: b/b/a: won't create hard link `b/b' to directory `Segmentation Fault
| $ ls -R
| .:
| b/
|
| b:
| a/ b/
|
| b/a:
|
| b/b:
|
| [Same effect if you live on a better system like linux that does not
| die when %s is a null pointer.]
|
| The segmentation fault occurs because %s has a null ptr...
|
| The error message is from copy.c:606.
|
| 1) It looks like this case is not intended to end up inside the
| enclosing if (...).
|
| 2) The error call has 3 %s values and only two args? ... get rid of
| the first "%s: "; error inserts that part.
|
|
| The real reason for this bug report is that mv should not go on and
| start copying b to b/b at all in this situation. This I think you will
| be able to trace much more quickly than I can.
|
|
| Andrew Mauer-Oats
| [EMAIL PROTECTED]