From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 8 21:30:04 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8380E1065696 for ; Mon, 8 Feb 2010 21:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5A0D08FC15 for ; Mon, 8 Feb 2010 21:30:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o18LU4Co025840 for ; Mon, 8 Feb 2010 21:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o18LU4BB025837; Mon, 8 Feb 2010 21:30:04 GMT (envelope-from gnats) Date: Mon, 8 Feb 2010 21:30:04 GMT Message-Id: <201002082130.o18LU4BB025837@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: bin/138146: commit references a PR X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2010 21:30:04 -0000 The following reply was made to PR bin/138146; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/138146: commit references a PR Date: Mon, 8 Feb 2010 21:23:57 +0000 (UTC) Author: brucec Date: Mon Feb 8 21:23:48 2010 New Revision: 203688 URL: http://svn.freebsd.org/changeset/base/203688 Log: Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This allows the -M option to be used without specifying -N. PR: bin/138146 Approved by: rrs (mentor) MFC after: 3 days Modified: head/bin/pkill/pkill.c head/bin/ps/ps.c head/usr.bin/w/w.c Modified: head/bin/pkill/pkill.c ============================================================================== --- head/bin/pkill/pkill.c Mon Feb 8 21:01:41 2010 (r203687) +++ head/bin/pkill/pkill.c Mon Feb 8 21:23:48 2010 (r203688) @@ -180,7 +180,8 @@ main(int argc, char **argv) debug_opt = 0; pidfile = NULL; pidfilelock = 0; - execf = coref = _PATH_DEVNULL; + execf = NULL; + coref = _PATH_DEVNULL; while ((ch = getopt(argc, argv, "DF:G:ILM:N:P:SU:ad:fg:ij:lnos:t:u:vx")) != -1) switch (ch) { Modified: head/bin/ps/ps.c ============================================================================== --- head/bin/ps/ps.c Mon Feb 8 21:01:41 2010 (r203687) +++ head/bin/ps/ps.c Mon Feb 8 21:23:48 2010 (r203688) @@ -212,7 +212,8 @@ main(int argc, char *argv[]) init_list(&sesslist, addelem_pid, sizeof(pid_t), "session id"); init_list(&ttylist, addelem_tty, sizeof(dev_t), "tty"); init_list(&uidlist, addelem_uid, sizeof(uid_t), "user"); - memf = nlistf = _PATH_DEVNULL; + memf = _PATH_DEVNULL; + nlistf = NULL; while ((ch = getopt(argc, argv, PS_ARGS)) != -1) switch (ch) { case 'A': Modified: head/usr.bin/w/w.c ============================================================================== --- head/usr.bin/w/w.c Mon Feb 8 21:01:41 2010 (r203687) +++ head/usr.bin/w/w.c Mon Feb 8 21:23:48 2010 (r203688) @@ -158,7 +158,8 @@ main(int argc, char *argv[]) } dropgid = 0; - memf = nlistf = _PATH_DEVNULL; + memf = _PATH_DEVNULL; + nlistf = NULL; while ((ch = getopt(argc, argv, p)) != -1) switch (ch) { case 'd': _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"