[BusyBox 0006154]: mv silently returns success when trying to mv a file to itself (mismatch with coreutils)

bugs at busybox.net bugs at busybox.net
Tue Nov 11 19:29:19 UTC 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=6154 
====================================================================== 
Reported By:                pgbovine
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   6154
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             11-11-2008 11:29 PST
Last Modified:              11-11-2008 11:29 PST
====================================================================== 
Summary:                    mv silently returns success when trying to mv a file
to itself (mismatch with coreutils)
Description: 
when trying to mv a file to itself, coreutils gives a warning and returns
an error, but busybox silently returns success.  I've reproduced this in
the latest svn head as of today.

Coreutils behavior:

$ echo 'hello' > A; mv A A
mv: `A' and `A' are the same file
$ echo $?
1

(exit code of 1 signifies error)

Busybox behavior:

$ echo 'hello' > A; ./busybox mv A A
$ echo $?
0

(exit code of 0 signifies success, and no warning message printed)

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-11-08 11:29  pgbovine       New Issue                                    
11-11-08 11:29  pgbovine       Status                   new => assigned     
11-11-08 11:29  pgbovine       Assigned To               => BusyBox         
======================================================================




More information about the busybox-cvs mailing list