[BusyBox 0006264]: cksum always exits with exitcode of 0, even when rejecting input (mismatch with coreutils)
bugs at busybox.net
bugs at busybox.net
Tue Nov 11 23:00:43 UTC 2008
The following issue has been CLOSED
======================================================================
http://busybox.net/bugs/view.php?id=6264
======================================================================
Reported By: pgbovine
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 6264
Category: Standards Compliance
Reproducibility: always
Severity: major
Priority: normal
Status: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 11-11-2008 13:37 PST
Last Modified: 11-11-2008 15:00 PST
======================================================================
Summary: cksum always exits with exitcode of 0, even when
rejecting input (mismatch with coreutils)
Description:
cksum is supposed to return an exitcode of 1 (or at least something
non-zero) when it rejects input, but busybox version always returns 0.
Coreutils:
$ cksum ''
cksum: : No such file or directory
$ echo $?
1
(proper exitcode of 1 to signify error)
Busybox:
$ ./busybox cksum ''
cksum: can't open '': No such file or directory
$ echo $?
0
(displays error message properly but still exits with 0)
======================================================================
----------------------------------------------------------------------
vda - 11-11-08 15:00
----------------------------------------------------------------------
fixed in svn, thanks.
Issue History
Date Modified Username Field Change
======================================================================
11-11-08 13:37 pgbovine New Issue
11-11-08 13:37 pgbovine Status new => assigned
11-11-08 13:37 pgbovine Assigned To => BusyBox
11-11-08 15:00 vda Status assigned => closed
11-11-08 15:00 vda Note Added: 0015504
======================================================================
More information about the busybox-cvs
mailing list