diff options
author | Ron Yorston <rmy@pobox.com> | 2023-04-21 15:08:28 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-04-21 15:08:28 +0100 |
commit | 9c20ed5246abbfe2fdae16a70b7fac1d0d1e51f0 (patch) | |
tree | 82f08695e5407b62fdf9ee99f14e403d063a0f46 /sysklogd | |
parent | ff8242f51aac4e1b358eac833d6b384ebe1a1116 (diff) | |
download | busybox-w32-su_cmd.tar.gz busybox-w32-su_cmd.tar.bz2 busybox-w32-su_cmd.zip |
su: allow additional arguments after su -csu_cmd
The syntax becomes:
su [-c CMD [ARG...]]
This makes it a lot easier to use values from the current shell,
instead of shell-quoting them for re-input and embedding at CMD.
Also, previously -c expected an option-argument, and now it's a flag
which requires a CMD operand, just like 'sh', so that both these
forms now error the same way (as they should):
sh -c --
su -c --
(previously su -c -- did not error because '--' was assumed CMD)
Adds 64 bytes.
(Based on GitHub PR #317)
Diffstat (limited to 'sysklogd')
0 files changed, 0 insertions, 0 deletions