Date: Thu, 1 Apr 1999 17:56:35 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/10904: sa(8) exits non-zero even on success Message-ID: <E10Sklf-000Mtd-00@scientia.demon.co.uk>
next in thread | raw e-mail | index | archive | help
>Number: 10904 >Category: bin >Synopsis: sa(8) exits non-zero even on success >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 1 09:10:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Ben Smithurst >Release: FreeBSD 3.1-STABLE i386 >Organization: >Environment: FreeBSD scientia.demon.co.uk 3.1-STABLE FreeBSD 3.1-STABLE #112: Tue Mar 30 01:39:04 BST 1999 ben@scientia.demon.co.uk:/usr/src/sys/compile/SCIENTIA i386 >Description: When sa(8) is run, the exit status isn't zero, even if no errors occur. >How-To-Repeat: $ sa -m $ echo $? On my system, the exit status is consistenly 104. >Fix: the error variable needs to be initialized to zero, I beleive. --- main.c.orig Thu Apr 1 17:50:24 1999 +++ main.c Thu Apr 1 17:50:29 1999 @@ -84,7 +84,7 @@ char **argv; { char ch; - int error; + int error = 0; while ((ch = getopt(argc, argv, "abcdDfijkKlmnqrstuv:")) != -1) switch (ch) { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E10Sklf-000Mtd-00>