Liu, Shuang (ADITG/ESM)
af6bc54fde
chgrp: correct the usage for non-desktop chgrp calls
...
When IF_DESKTOP is not defined, chown and chgrp only takes option -R -h,
However the usage output of chgrp is wrong:
$ ./busybox.nosuid chown
Usage: chown [-Rh]... USER[:[GRP]] FILE...
$ ./busybox.nosuid chgrp
Usage: chgrp [-RhLHP]... GROUP FILE...
$ ./busybox.nosuid chgrp -H group dummy
chgrp: invalid option -- 'H'
Usage: chgrp [-RhLHP]... GROUP FILE...
The chgrp is now a wrapper of chown, so the recognized options shall be the same.
This is introduced by 34425389e09353a8dacdd6b23a62553f699c544c
I would expect the correct behavior shall be the same as chown.
So suggest the below patch, the behavior shall be:
$ ./busybox.nosuid chgrp
Usage: chgrp [-Rh]... GROUP FILE...
Signed-off-by: Shuang Liu <sliu@de.adit-jv.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2019-11-17 17:06:31 +01:00
..
2017-10-05 15:19:25 +02:00
2018-12-28 03:20:17 +01:00
2018-11-29 11:44:10 +01:00
2019-11-17 17:06:31 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2017-08-04 19:55:01 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-06-06 15:16:48 +02:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2019-10-24 16:26:55 +02:00
2019-05-14 17:49:14 +02:00
2019-07-02 11:35:03 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2019-02-19 17:08:39 +01:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2018-12-28 03:20:17 +01:00
2017-07-21 09:50:55 +02:00
2017-10-05 15:19:25 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2017-01-10 15:13:30 +01:00
2018-12-28 03:20:17 +01:00
2019-10-08 14:07:50 +02:00
2019-07-02 11:35:03 +02:00
2019-05-26 13:53:41 +02:00
2019-07-02 11:35:03 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2017-10-05 15:19:25 +02:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2017-08-02 14:26:33 +02:00
2019-07-02 11:35:03 +02:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2017-09-18 16:28:43 +02:00
2019-01-07 15:20:56 +01:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2019-08-03 18:08:27 +02:00
2019-07-02 11:35:03 +02:00
2018-12-28 03:20:17 +01:00
2019-04-02 14:55:29 +02:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2019-10-07 14:25:45 +02:00
2019-10-25 12:12:22 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2017-07-21 09:50:55 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2019-07-02 11:35:03 +02:00
2019-07-02 11:35:03 +02:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00
2018-12-28 03:20:17 +01:00