Date: 4 Aug 1998 10:28:09 -0000 From: Jos.Backus@nl.origin-it.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/7489: rtprio gives misleading error message when execvp fails Message-ID: <19980804102809.8428.qmail@hal.mpn.cp.philips.com>
next in thread | raw e-mail | index | archive | help
>Number: 7489 >Category: bin >Synopsis: rtprio gives misleading error message when execvp fails >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: Tue Aug 4 03:40:01 PDT 1998 >Last-Modified: >Originator: Jos Backus >Organization: Origin B.V. >Release: FreeBSD 3.0-CURRENT i386 >Environment: Both -stable and -current >Description: If rtprio can't find the command you want it to run (e.g. because it is not in the current PATH), it will output its own name instead of the command in the resulting error message. >How-To-Repeat: # export PATH=/usr/sbin # rtprio 5 ls rtprio: rtprio: No such file or directory # >Fix: Trivial: point err() to the correct argv element: --- rtprio.c.orig Tue May 19 22:52:31 1998 +++ rtprio.c Tue Aug 4 12:21:13 1998 @@ -121,7 +121,7 @@ if (proc == 0) { execvp(argv[2], &argv[2]); - err(1, "%s", argv[0]); + err(1, "%s", argv[2]); } } exit (1); >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?19980804102809.8428.qmail>