Date: Sun, 11 Mar 2001 02:26:20 +1100 (EST) From: andrew@ugh.net.au To: FreeBSD-gnats-submit@freebsd.org Subject: bin/25654: minor style(9) fix for sleep Message-ID: <20010310152620.9DEBBA86A@starbug.ugh.net.au>
next in thread | raw e-mail | index | archive | help
>Number: 25654 >Category: bin >Synopsis: minor style(9) fix for sleep >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: Sat Mar 10 07:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Andrew >Release: FreeBSD 4.2-STABLE i386 >Organization: UgH! >Environment: >Description: sleep should exit with EX_USAGE if given incorrect arguments. >How-To-Repeat: sleep blah blah >Fix: --- sleep.c.orig Fri Oct 1 17:53:40 1999 +++ sleep.c Sun Mar 11 01:18:25 2001 @@ -49,6 +49,7 @@ #include <limits.h> #include <stdio.h> #include <stdlib.h> +#include <sysexits.h> #include <time.h> #include <unistd.h> @@ -132,5 +133,5 @@ { (void)fprintf(stderr, "usage: sleep seconds\n"); - exit(1); + exit(EX_USAGE); } >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?20010310152620.9DEBBA86A>