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

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to