From owner-freebsd-bugs Fri Aug 23 2:20: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54C0137B400 for ; Fri, 23 Aug 2002 02:20:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BFBA43E81 for ; Fri, 23 Aug 2002 02:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7N9K1JU008990 for ; Fri, 23 Aug 2002 02:20:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7N9K17m008989; Fri, 23 Aug 2002 02:20:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F408137B400 for ; Fri, 23 Aug 2002 02:13:42 -0700 (PDT) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4753D43E77 for ; Fri, 23 Aug 2002 02:13:41 -0700 (PDT) (envelope-from andre.albsmeier@mchp.siemens.de) Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by david.siemens.de (8.11.6/8.11.6) with ESMTP id g7N9DYn27779 for ; Fri, 23 Aug 2002 11:13:34 +0200 (MEST) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail3.siemens.de (8.11.6/8.11.6) with ESMTP id g7N9DYx06377 for ; Fri, 23 Aug 2002 11:13:34 +0200 (MEST) Received: (from localhost) by curry.mchp.siemens.de (8.12.5/8.12.5) id g7N9DYt7003986 for FreeBSD-gnats-submit@freebsd.org; Fri, 23 Aug 2002 11:13:34 +0200 (CEST) Message-Id: <200208230913.g7N9DXSs003030@curry.mchp.siemens.de> Date: Fri, 23 Aug 2002 11:13:33 +0200 (CEST) From: Andre Albsmeier To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/41926: 'h' missing in getopt() call in STABLE's chmod Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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