[BusyBox 0000493]: cp returns exit status 0 for certain failure modes

bugs at busybox.net bugs at busybox.net
Thu Oct 20 09:39:43 UTC 2005


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=493 
====================================================================== 
Reported By:                schweikhardt
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   493
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             10-20-2005 02:39 PDT
Last Modified:              10-20-2005 02:39 PDT
====================================================================== 
Summary:                    cp returns exit status 0 for certain failure modes
Description: 
# cp -?          # to print version info
cp: invalid option -- ?
BusyBox v1.00-rc3 (2004.10.07-07:15+0000) multi-call binary

Usage: cp [OPTION]... SOURCE DEST

Copies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

        -a      Same as -dpR
        -d      Preserves links
        -p      Preserves file attributes if possible
        -f      force (implied; ignored) - always set
        -i      interactive, prompt before overwrite
        -R,-r   Copies directories recursively

# cp nonexistent foo
cp: nonexistent: No such file or directory
# echo $?
1                          # Correct.
# cp verybigfile foo
cp: Write Error: No space left on device
# echo $?
0                          # Bug. Should be non-zero according to POSIX.

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-20-05 02:39  schweikhardt   New Issue                                    
10-20-05 02:39  schweikhardt   Status                   new => assigned     
10-20-05 02:39  schweikhardt   Assigned To               => BusyBox         
======================================================================




More information about the busybox-cvs mailing list