Subject: bin/18827: pkill does not recognize option -u
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael van Elst <mlelstv@pepew.1st.de>
List: netbsd-bugs
Date: 10/27/2002 11:54:45
>Number: 18827
>Category: bin
>Synopsis: pkill does not recognize option -u
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 27 02:55:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Michael van Elst
>Release: NetBSD 1.6_STABLE
>Organization:
-dis
>Environment:
System: NetBSD pepew 1.6_STABLE NetBSD 1.6_STABLE (PEPEW) #20: Thu Oct 24 20:50:36 MEST 2002 src@pepew:/amd/fud/d/0/src/sys/arch/i386/compile/PEPEW i386
Architecture: i386
Machine: i386
>Description:
pkill does not recognize the -u option because the letter is missing
in the getopt template.
>How-To-Repeat:
# pkill -u 0 vtund
pkill: unknown option -- u
usage: pkill [-signal] [-fnvx] [-G gid] [-P ppid] [-U uid] [-g pgrp] [-s sid] [-t tty] [-u euid] pattern ...
>Fix:
--- pkill.c.dist Sun Oct 27 11:51:29 2002
+++ pkill.c Sun Oct 27 11:51:44 2002
@@ -156,7 +156,7 @@
criteria = 0;
- while ((ch = getopt(argc, argv, "G:P:U:d:fg:lns:t:vx")) != -1)
+ while ((ch = getopt(argc, argv, "G:P:U:d:fg:lns:t:u:vx")) != -1)
switch (ch) {
case 'G':
makelist(&rgidlist, LT_GROUP, optarg);
>Release-Note:
>Audit-Trail:
>Unformatted: