Date: Fri, 23 Aug 2002 11:13:33 +0200 (CEST) From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/41926: 'h' missing in getopt() call in STABLE's chmod Message-ID: <200208230913.g7N9DXSs003030@curry.mchp.siemens.de>
next in thread | raw e-mail | index | archive | help
>Number: 41926 >Category: bin >Synopsis: 'h' missing in getopt() call in STABLE's chmod >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 23 02:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Andre Albsmeier >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD 4.6-STABLE #2: Wed Aug 21 16:06:59 CEST 2002 >Description: /bin/chmod supports the -h flag but it's missing in the getopt call. It is described in the man page but missing in the SYNOPSIS line as well. >How-To-Repeat: chmod -h man chmod >Fix: --- chmod.c.ORI Fri Aug 23 11:07:12 2002 +++ chmod.c Fri Aug 23 11:07:25 2002 @@ -78,7 +78,7 @@ set = NULL; omode = 0; Hflag = Lflag = Pflag = Rflag = fflag = hflag = vflag = 0; - while ((ch = getopt(argc, argv, "HLPRXfgorstuvwx")) != -1) + while ((ch = getopt(argc, argv, "HLPRXfghorstuvwx")) != -1) switch (ch) { case 'H': Hflag = 1; --- chmod.1.ORI Fri Aug 23 11:07:17 2002 +++ chmod.1 Fri Aug 23 11:08:13 2002 @@ -44,7 +44,7 @@ .Sh SYNOPSIS .Nm .Oo -.Fl fv +.Fl fhv .Fl R .Op Fl H | Fl L | Fl P .Oc >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?200208230913.g7N9DXSs003030>