Bug 17232

Summary: chown(1) and chgrp(1) do not honor -v flag per documentation - patch included
Product: Base System Reporter: rmukerji <rmukerji>
Component: miscAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description rmukerji 2000-03-06 21:20:01 UTC
From owner-freebsd-current@FreeBSD.ORG  Mon Mar  6 13:36:20 2000
From: Dave Boers <djb@relativity.student.utwente.nl>                                       
Reply-To: djb@relativity.student.utwente.nl                                                
To: freebsd-current@freebsd.org                                                            
Cc: dalroi@wit401310.student.utwente.nl                                                    
Subject: Small bug in chown and chgrp ?                                                    
Date: Mon, 6 Mar 2000 20:36:08 +0100                                                       
Message-ID: <20000306203608.B26973@relativity.student.utwente.nl>
X-Mailer: Mutt 1.0.1i                                                                      

Hi all,

I've been bitten by the following:

44 relativity ~ % chown -v djb:wheel test
chown: illegal option -- v                                                                 
usage: chown [-R [-H | -L | -P]] [-f] [-h] [-v] owner[:group] file ...                     
       chown [-R [-H | -L | -P]] [-f] [-h] [-v] :group file ...
       chgrp [-R [-H | -L | -P]] [-f] [-h] [-v] group file ...

Where "test" is an ordinary directory.
        
It seems that chown's behavior is inconsistent with both the usage message
and the man page. The same goes for chgrp.

Regards,
                
Dave Boers.     
                        
--                                                                                         
  Dave Boers             < djb @ relativity . student . utwente . nl >                     
  Don't let your schooling interfere with your education. (Mark Twain)

Fix: % cvs diff -u chown.c 
How-To-Repeat: # chown -v arm foo
chown: illegal option -- v
usage: chown [-R [-H | -L | -P]] [-f] [-h] [-v] owner[:group] file ...
       chown [-R [-H | -L | -P]] [-f] [-h] [-v] :group file ...
       chgrp [-R [-H | -L | -P]] [-f] [-h] [-v] group file ...
Comment 1 cpiazza freebsd_committer freebsd_triage 2000-03-06 22:18:41 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

obrien added -v to these programs. 
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2000-11-10 18:36:26 UTC
State Changed
From-To: open->closed

Fixed a while ago.  Thanks for the report!