[Adduser-devel] Bug#362409: delgroup --only-if-empty returns error
code 1, if group is not empty
Matthias Klose
doko at cs.tu-berlin.de
Thu Apr 13 12:52:44 UTC 2006
severity 362409 normal
thanks
Marc Haber writes:
> delgroup exits with an error return value if a command cannot be
> executed. delgroup --only-if-empty cannot be executed if the group is
> non-empty. Hence, it is the correct thing to exit with a non-zero exit
> value.
- could you point out a use case where you want this behaviour?
- if you can point out a use case, and do not want to change that
option, then please add an --ignore-fail-on-non-empty option.
- you cannot differentiate between "group does not exist" and
"group not empty" in the return code. If I have to find out
this information with getent myself, why does this option
exist at all?
More information about the Adduser-devel
mailing list