[PATCH 0/1] delgroup: Add --only-if-empty flag
Magnus Armholt
magnus.armholt at gmail.com
Tue Nov 15 10:59:13 UTC 2022
Add --only-if-empty flag to delgroup implementation.
When given, and error will be returned if the group is not empty.
The flag can also be given to deluser.
When given, deluser will not delete the same name group, unless it
is empty.
Magnus Armholt (1):
delgroup: Add --only-if-empty argument option
loginutils/deluser.c | 50 +++++++++++++++++++++++++++++++++++++-------
1 file changed, 42 insertions(+), 8 deletions(-)
--
2.34.1
More information about the busybox
mailing list