[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 21:37:37 UTC 2008
The following issue has been SUBMITTED.
======================================================================
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: assigned
======================================================================
Date Submitted: 11-11-2008 13:37 PST
Last Modified: 11-11-2008 13:37 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)
======================================================================
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
======================================================================
More information about the busybox-cvs
mailing list