Bug#362409: [Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty

Stephen Gran sgran at debian.org
Tue Jun 20 22:45:22 UTC 2006


This one time, at band camp, Matthias Klose said:
> Package: adduser
> 
> What sense makes this return status of 1 in combination with
> --only-if-empty? At least it should be documented in the man page.

Er, it exits 5 if the group isn't empty.  Can't that be tested for and
dealt with?  I agree that having all error codes be the same would be
silly, but that's not the case:

steve at gashuffer:~$ sudo delgroup --only-if-empty adm
/usr/sbin/delgroup: The group `adm' is not empty!
steve at gashuffer:~$ echo $?
5

Take care,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060620/2d2ba2bc/attachment.pgp


More information about the Adduser-devel mailing list