[BusyBox 0001411]: chgrp with no arguments reports argument list for chown

bugs at busybox.net bugs at busybox.net
Fri Jul 13 23:21:10 UTC 2007


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1411 
====================================================================== 
Reported By:                kiltedknight
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1411
Category:                   Documentation
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             06-29-2007 08:54 PDT
Last Modified:              07-13-2007 16:21 PDT
====================================================================== 
Summary:                    chgrp with no arguments reports argument list for
chown
Description: 
chgrp_main() should abort before even calling chown_main() when no or
incorrect arguments are present, otherwise you list out arguments that are
not used by chown.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 06-30-07 10:17  
---------------------------------------------------------------------- 
Can you give an example? It works for me:

# ./busybox chgrp
BusyBox v1.7.0.svn (2007-06-30 12:02:05 CEST) multi-call binary

Usage: chgrp [-RhLHPcvf]... GROUP FILE...

Change the group membership of each FILE to GROUP

Options:
        -R      Recurse directories
        -h      Affect symlinks instead of symlink targets
        -L      Traverse all symlinks to directories
        -H      Traverse symlinks on command line only
        -P      Do not traverse symlinks (default)
        -c      List changed files
        -v      Verbose
        -f      Hide errors

# ./busybox chown
BusyBox v1.7.0.svn (2007-06-30 12:02:05 CEST) multi-call binary

Usage: chown [-RhLHPcvf]...  OWNER[<.|:>[GROUP]] FILE...

Change the owner and/or group of each FILE to OWNER and/or GROUP

Options:
        -R      Recurse directories
        -h      Affect symlinks instead of symlink targets
        -L      Traverse all symlinks to directories
        -H      Traverse symlinks on command line only
        -P      Do not traverse symlinks (default)
        -c      List changed files
        -v      List all files
        -f      Hide errors 

---------------------------------------------------------------------- 
 kiltedknight - 07-03-07 10:21  
---------------------------------------------------------------------- 
No... you don't understand.  All of the listed options for chgrp are not
needed, nor do they work for chgrp.  Why display them? 

---------------------------------------------------------------------- 
 kiltedknight - 07-03-07 10:23  
---------------------------------------------------------------------- 
In fact, the only option that should be listed for chgrp is -R, since it's
the only one that actually works for that. 

---------------------------------------------------------------------- 
 kiltedknight - 07-03-07 10:26  
---------------------------------------------------------------------- 
Bleh... ok... I've got to get with the other people here and have them be a
bit more clear with things.

Anyway, in 1.4.2, -c does not work as expected. 

---------------------------------------------------------------------- 
 vda - 07-04-07 11:55  
---------------------------------------------------------------------- 
What option does not work? Let me check...

# ./busybox chgrp --help
BusyBox v1.7.0.svn (2007-07-01 20:20:44 CEST) multi-call binary

Usage: chgrp [-RhLHPcvf]... GROUP FILE...

Change the group membership of each FILE to GROUP

Options:
        -R      Recurse directories
        -h      Affect symlinks instead of symlink targets
        -L      Traverse all symlinks to directories
        -H      Traverse symlinks on command line only
        -P      Do not traverse symlinks (default)
        -c      List changed files
        -v      Verbose
        -f      Hide errors

# mkdir zz
# ln -s zz zzl
# >zz/file
# ./busybox chgrp -Rv 1 zz
changed ownership of 'zz' to 0:1
changed ownership of 'zz/file' to 0:1
# ./busybox chgrp -Rv 2 zzl
changed ownership of 'zzl' to 0:2
# ls -ld zz zzl
drwxr-xr-x    2 root     1              72 Jul  4 20:48 zz
lrwxrwxrwx    1 root     2               2 Jul  4 20:47 zzl -> zz
# ./busybox chgrp -RvL 3 zzl
changed ownership of '/.1/usr/srcdevel/bbox/fix/busybox.t5/zz' to 0:3
changed ownership of '/.1/usr/srcdevel/bbox/fix/busybox.t5/zz/file' to
0:3
# ./busybox chgrp -RcL 4 zzl
changed ownership of '/.1/usr/srcdevel/bbox/fix/busybox.t5/zz' to 0:4
changed ownership of '/.1/usr/srcdevel/bbox/fix/busybox.t5/zz/file' to
0:4
# ./busybox chgrp -RcL 4 zzl
# _

Well, apart from -L unexpectedly giving fully-resolved names, at least -R
-c -v -L seem to work. 

---------------------------------------------------------------------- 
 vda - 07-13-07 16:21  
---------------------------------------------------------------------- 
Fixed "full patchname" buglet. Other than that, I don't see any problems 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-29-07 08:54  kiltedknight   New Issue                                    
06-29-07 08:54  kiltedknight   Status                   new => assigned     
06-29-07 08:54  kiltedknight   Assigned To               => BusyBox         
06-29-07 09:28  kiltedknight   Issue Monitored: kiltedknight                    
06-30-07 10:17  vda            Note Added: 0002539                          
07-03-07 10:21  kiltedknight   Note Added: 0002550                          
07-03-07 10:23  kiltedknight   Note Added: 0002551                          
07-03-07 10:26  kiltedknight   Note Added: 0002552                          
07-04-07 11:55  vda            Note Added: 0002555                          
07-13-07 16:21  vda            Status                   assigned => closed  
07-13-07 16:21  vda            Note Added: 0002599                          
======================================================================




More information about the busybox-cvs mailing list