BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001411 [BusyBox] Documentation minor always 06-29-07 08:54 07-13-07 16:21
Reporter kiltedknight View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0001411: 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.
Additional Information
Attached Files

- Relationships

- Notes
(0002539)
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
 
(0002550)
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?
 
(0002551)
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.
 
(0002552)
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.
 
(0002555)
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.
 
(0002599)
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
07-13-07 16:21 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker