From nighthawk@unrealircd.com  Wed Jul 17 14:17:23 2002
Return-Path: <nighthawk@unrealircd.com>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1813C37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Jul 2002 14:17:23 -0700 (PDT)
Received: from firedrake.etherix.com (pc1-oxfd1-6-cust131.oxf.cable.ntl.com [80.3.240.131])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 36C3C43E7B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Jul 2002 14:17:20 -0700 (PDT)
	(envelope-from nighthawk@unrealircd.com)
Received: by firedrake.etherix.com (Postfix, from userid 1001)
	id 1E63958C; Wed, 17 Jul 2002 22:16:09 +0100 (BST)
Message-Id: <20020717211609.1E63958C@firedrake.etherix.com>
Date: Wed, 17 Jul 2002 22:16:09 +0100 (BST)
From: Edward Brocklesby <nighthawk@unrealircd.com>
Reply-To: Edward Brocklesby <nighthawk@unrealircd.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: "-V" (very verbose) flag for chmod
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         40709
>Category:       bin
>Synopsis:       "-V" (very verbose) flag for chmod
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    johan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 17 14:20:01 PDT 2002
>Closed-Date:    Sat Aug 03 22:29:36 PDT 2002
>Last-Modified:  Sat Aug 03 22:29:36 PDT 2002
>Originator:     Edward Brocklesby
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD firedrake.internal 4.6-STABLE FreeBSD 4.6-STABLE #0: Wed Jul 17 05:08:06 BST 2002 root@firedrake.internal:/usr/obj/usr/src/sys/FIREDRAKE i386

>Description:

http://firedrake.etherix.com/~ejb/chmod-Vflag.diff

This patch adds a new command line option to chmod, '-V'.  This is similar is
concept to -v, except that it prints more information to the user.  For example:

ejb@firedrake:~/t% chmod -V 755 *
test1: 0100744 [-rwxr--r-- ] -> 0100755 [-rwxr-xr-x ]
test2: 0100645 [-rw-r--r-x ] -> 0100755 [-rwxr-xr-x ]
test3: 0100111 [---x--x--x ] -> 0100755 [-rwxr-xr-x ]
ejb@firedrake:~/t% 

Because this addition does not change any existing output format or option parsing,
it should not break backward compatibility.

This patch updates both the source file and the manual page, chmod.1.
It is based on:
     $FreeBSD: src/bin/chmod/chmod.1,v 1.17.2.9 2002/07/14 21:38:40 keramida Exp $
     $FreeBSD: src/bin/chmod/chmod.c,v 1.16.2.3 2001/08/01 01:21:09 obrien Exp $

from RELENG_4.

>How-To-Repeat:
N/A.

>Fix:

(See Description.)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: johan 
State-Changed-When: Mon Jul 22 14:52:33 PDT 2002 
State-Changed-Why:  
I like the idea, but I suggest using repeated 
-v to indicate that one wants very verbose 
output. 

Hence, 
# chmod -v -v 
would give very verbose output while 
# chmod -v  
give verbose output. 

What do you think about this? 



Responsible-Changed-From-To: freebsd-bugs->johan 
Responsible-Changed-By: johan 
Responsible-Changed-When: Mon Jul 22 14:52:33 PDT 2002 
Responsible-Changed-Why:  
I will have a look at this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40709 

From: Johan Karlsson <johan@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Fwd: Re: bin/40709: "-V" (very verbose) flag for chmod
Date: Tue, 23 Jul 2002 05:17:44 +0200

 --CblX+4bnyfN0pR09
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Append this to the audit-trail.
 
 -- 
 Johan Karlsson		mailto:johan@FreeBSD.org
 
 --CblX+4bnyfN0pR09
 Content-Type: message/rfc822
 Content-Disposition: inline
 
 Received: from eol.mt.luth.se (root@eol.mt.luth.se [130.240.1.16])
 	by numeri.campus.luth.se (8.11.6/8.11.6) with ESMTP id g6N2McI38900
 	for <k@numeri.campus.luth.se>; Tue, 23 Jul 2002 04:22:38 +0200 (CEST)
 	(envelope-from nighthawk@unrealircd.com)
 Received: from mx2.freebsd.org (mx2.FreeBSD.org [216.136.204.119])
 	by eol.mt.luth.se (8.10.1/8.10.1) with ESMTP id g6N2Mau01819
 	for <k@numeri.campus.luth.se>; Tue, 23 Jul 2002 04:22:36 +0200 (MET DST)
 Received: from hub.freebsd.org (hub.FreeBSD.org [216.136.204.18])
 	by mx2.freebsd.org (Postfix) with ESMTP id AF18955811
 	for <k@numeri.campus.luth.se>; Mon, 22 Jul 2002 19:21:21 -0700 (PDT)
 	(envelope-from nighthawk@unrealircd.com)
 Received: by hub.freebsd.org (Postfix)
 	id 9064D37B405; Mon, 22 Jul 2002 19:21:21 -0700 (PDT)
 Delivered-To: johan@freebsd.org
 Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
 	by hub.freebsd.org (Postfix) with ESMTP
 	id 8ACE337B401; Mon, 22 Jul 2002 19:21:21 -0700 (PDT)
 Received: from mail1-gui.server.ntli.net (mail1-gui.server.ntli.net [194.168.222.13])
 	by mx1.FreeBSD.org (Postfix) with ESMTP
 	id 41C4743E42; Mon, 22 Jul 2002 19:21:20 -0700 (PDT)
 	(envelope-from nighthawk@unrealircd.com)
 Received: from firedrake.internal ([80.3.240.131])
           by mail1-gui.server.ntli.net (Post.Office MTA v3.1
           release PO203a  ID# 0-33929U70000L2S50) with ESMTP id AAA29727;
           Tue, 23 Jul 2002 03:21:18 +0100
 Content-Type: text/plain;
   charset="iso-8859-1"
 From: Edward Brocklesby <nighthawk@unrealircd.com>
 Organization: None.
 To: Johan Karlsson <johan@FreeBSD.org>, freebsd-bugs@FreeBSD.org
 Subject: Re: bin/40709: "-V" (very verbose) flag for chmod
 Date: Tue, 23 Jul 2002 03:19:35 +0100
 X-Mailer: KMail [version 1.4]
 References: <200207222156.g6MLuJ8H001775@freefall.freebsd.org>
 In-Reply-To: <200207222156.g6MLuJ8H001775@freefall.freebsd.org>
 MIME-Version: 1.0
 Message-Id: <200207230319.35636.nighthawk@unrealircd.com>
 Content-Transfer-Encoding: 8bit
 X-MIME-Autoconverted: from quoted-printable to 8bit by numeri.campus.luth.se id g6N2McI38900
 
 Johan Karlsson:
 > 	I like the idea, but I suggest using repeated
 > 	-v to indicate that one wants very verbose
 > 	output.
 
 > 	What do you think about this?
 
 Agreed.  Since it seems -v is not a standard flag anyway, I don't see any 
 problem with that behaviour, and it is already established behaviour in other 
 instances.  
 
 An updated diff may be found at: 
 http://firedrake.etherix.com/~ejb/chmod-vvflag.diff.
 
 Thanks for taking the time to look at this.
 
 	-larne.
 
 --CblX+4bnyfN0pR09--
State-Changed-From-To: analyzed->closed 
State-Changed-By: obrien 
State-Changed-When: Sat Aug 3 22:29:26 PDT 2002 
State-Changed-Why:  
committed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40709 
>Unformatted:
