NetBSD Problem Report #35409
From aw-netbsd@instandbesetzt.net Thu Jan 11 21:33:29 2007
Return-Path: <aw-netbsd@instandbesetzt.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 026D763BC66
for <gnats-bugs@gnats.NetBSD.org>; Thu, 11 Jan 2007 21:33:29 +0000 (UTC)
Message-Id: <20070111213405.GA10083@schroeder.lan.instandbesetzt.net>
Date: Thu, 11 Jan 2007 22:34:05 +0100
From: Andreas Wiese <aw-netbsd@instandbesetzt.net>
To: gnats-bugs@NetBSD.org
Subject: bin/chmod(1) manpage update
X-Send-Pr-Version: 3.95
>Number: 35409
>Category: bin
>Synopsis: documenting undocumented chmod(1)-features
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jan 11 21:35:01 +0000 2007
>Closed-Date: Fri Jan 22 05:41:59 +0000 2010
>Last-Modified: Fri Jan 22 05:45:01 +0000 2010
>Originator: Andreas Wiese
>Release: NetBSD 4.99.8
>Organization:
BSD-Crew Dresden
>Environment:
System: NetBSD schroeder.lan.instandbesetzt.net 4.99.8 NetBSD 4.99.8 (SCHROEDER) #0: Thu Jan 11 21:37:15 CET 2007 root@schroeder.lan.instandbesetzt.net:/usr/obj/sys/arch/i386/compile/SCHROEDER i386
Architecture: i386
Machine: i386
>Description:
Hey.
I spotted some »undocumented features« in chmod(1) and tried to
eliminate this deficit ;)
>How-To-Repeat:
n/a
>Fix:
diff -ur chmod.o/chmod.1 chmod/chmod.1
--- chmod.o/chmod.1 2007-01-09 22:45:56.000000000 +0100
+++ chmod/chmod.1 2007-01-09 22:46:45.000000000 +0100
@@ -73,6 +73,10 @@
.It Fl R
Change the modes of the file hierarchies rooted in the files
instead of just the files themselves.
+.It Fl f
+Do not display a diagnostic message or modify the exit status to
+reflect errors happening during
+.Xr chmod 2 .
.It Fl h
If
.Ar file
diff -ur chmod.o/chmod.c chmod/chmod.c
--- chmod.o/chmod.c 2007-01-09 22:45:56.000000000 +0100
+++ chmod/chmod.c 2007-01-09 22:48:01.000000000 +0100
@@ -91,7 +91,7 @@
case 'R':
Rflag = 1;
break;
- case 'f': /* XXX: undocumented. */
+ case 'f':
fflag = 1;
break;
case 'h':
@@ -207,7 +207,7 @@
usage(void)
{
(void)fprintf(stderr,
- "usage: %s [-R [-H | -L | -P]] [-h] mode file ...\n",
+ "usage: %s [-R [-H | -L | -P]] [-fh] mode file ...\n",
getprogname());
exit(1);
/* NOTREACHED */
HAND & LG -- aw
np: Kaizers Orchestra (Ompa til du dør) -- 05. Rullett
--
Unnützes Wissen: 200 skurile Fakten, die du nie mehr vergißt (»neon«, 08/05):
120. Die Mafia ist das größte Wirtschaftsunternehmen Italiens. Laut
einem der führenden Ermittler macht sie mittlerweile 100 Milliarden
Euro Umsatz -- doppelt so viel wie Fiat.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Fri, 22 Jan 2010 05:41:59 +0000
State-Changed-Why:
Fixed. Thanks!
From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/35409 CVS commit: src/bin/chmod
Date: Fri, 22 Jan 2010 05:41:36 +0000
Module Name: src
Committed By: snj
Date: Fri Jan 22 05:41:36 UTC 2010
Modified Files:
src/bin/chmod: chmod.1 chmod.c
Log Message:
Document "-f". From Andreas Wiese in PR bin/35409, slightly modified.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/bin/chmod/chmod.1
cvs rdiff -u -r1.34 -r1.35 src/bin/chmod/chmod.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.