Matthias Klose
2006-Apr-13 11:09 UTC
Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty
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.
Debian Bug Tracking System
2006-Apr-13 11:37 UTC
[Adduser-devel] Bug#362409: marked as done (delgroup --only-if-empty returns error code 1, if group is not empty)
Your message dated Thu, 13 Apr 2006 13:23:08 +0200 with message-id <20060413112308.GA26691@torres.l21.ma.zugschlus.de> and subject line [Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------- next part -------------- An embedded message was scrubbed... From: Matthias Klose <doko@cs.tu-berlin.de> Subject: delgroup --only-if-empty returns error code 1, if group is not empty Date: Thu, 13 Apr 2006 12:22:45 +0200 Size: 2204 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060413/7e9a3691/attachment.mht -------------- next part -------------- An embedded message was scrubbed... From: Marc Haber <mh+debian-packages@zugschlus.de> Subject: Re: [Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty Date: Thu, 13 Apr 2006 13:23:08 +0200 Size: 2001 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060413/7e9a3691/attachment-0001.mht
Matthias Klose
2006-Apr-13 11:48 UTC
Bug#362409: [Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty
reopen 362409 thanks dude, at least it''s inpolite behaviour. what don''t you understand? delgroup --only-if-empty returns error code 1, if the group is not empty. what context do you need? in which situation do I need that return value, if the option --only-if-empty is already there? Marc Haber writes:> On Thu, Apr 13, 2006 at 12:22:45PM +0200, Matthias Klose wrote: > > What sense makes this return status of 1 in combination with > > --only-if-empty? At least it should be documented in the man page. > > No context given at all. Closing the bug. > > Please feel free to re-open with enough information that allows people > to understand what you mean. > > Greetings > Marc > > -- > ----------------------------------------------------------------------------- > Marc Haber | "I don''t trust Computers. They | Mailadresse im Header > Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 > Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
Debian Bug Tracking System
2006-Apr-13 11:58 UTC
Processed: Re: [Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty
Processing commands for control@bugs.debian.org:> reopen 362409Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty Bug reopened, originator not changed.> thanksStopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Marc Haber
2006-Apr-13 12:39 UTC
[Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty
user adduser@packages.debian.org usertags #362409 patch-appreciated severity #362409 wishlist thanks On Thu, Apr 13, 2006 at 01:37:17PM +0200, Matthias Klose wrote:> what don''t you understand? delgroup --only-if-empty returns error code > 1, if the group is not empty. what context do you need? in which > situation do I need that return value, if the option --only-if-empty > is already there?I apologize. I didn''t see that the vital information was given in the subject. 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. I agree that return codes should be documented in the man page. Since the man page doesn''t document this for any option and any command, this would be a major overhaul of the man pages. A patch is appreciated. Greetings Marc P.S. please don''t top post, and don''t call me babe^wdude -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
Debian Bug Tracking System
2006-Apr-13 12:43 UTC
[Adduser-devel] Processed: Re: Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty
Processing commands for control@bugs.debian.org:> user adduser@packages.debian.orgSetting user to adduser@packages.debian.org (was mh+debian-packages@zugschlus.de).> usertags #362409 patch-appreciatedThere were no usertags set. Usertags are now: patch-appreciated.> severity #362409 wishlistBug#362409: delgroup --only-if-empty returns error code 1, if group is not empty Severity set to `wishlist''.> thanksStopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Matthias Klose
2006-Apr-13 13:06 UTC
[Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty
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?
Debian Bug Tracking System
2006-Apr-13 13:06 UTC
[Adduser-devel] Processed: Re: Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty
Processing commands for control@bugs.debian.org:> severity 362409 normalBug#362409: delgroup --only-if-empty returns error code 1, if group is not empty Severity set to `normal''.> thanksStopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Joerg Hoh
2006-Apr-13 19:28 UTC
Bug#362409: [Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty
On Thu, Apr 13, 2006 at 02:52:44PM +0200, Matthias Klose wrote:> 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?This might be useful if you want to delete a group only if there''s no user in that group.> - 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.Probably not; I don''t want an option with that much negations in the option name itself.> - 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?What''s your scenario? What do you want to achieve? Maybe we can find together a better solution than just adding even more options. Joerg -- What did you do to the cat? It looks half-dead. -Schroedinger''s wife -------------- 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/20060413/c5ad803c/attachment-0003.pgp
Stephen Gran
2006-Jun-20 22:55 UTC
Bug#362409: [Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty
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@gashuffer:~$ sudo delgroup --only-if-empty adm /usr/sbin/delgroup: The group `adm'' is not empty! steve@gashuffer:~$ echo $? 5 Take care, -- ----------------------------------------------------------------- | ,''''`. Stephen Gran | | : :'' : sgran@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
Debian Bug Tracking System
2006-Jun-22 08:51 UTC
[Adduser-devel] Bug#362409: marked as done (delgroup --only-if-empty returns error code 1, if group is not empty)
Your message dated Thu, 22 Jun 2006 10:30:24 +0200 with message-id <20060622083024.GA26191@nechayev.zugschlus.de> and subject line Bug#362409: [Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------- next part -------------- An embedded message was scrubbed... From: Matthias Klose <doko@cs.tu-berlin.de> Subject: delgroup --only-if-empty returns error code 1, if group is not empty Date: Thu, 13 Apr 2006 12:22:45 +0200 Size: 2204 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060622/8f5c7901/attachment.mht -------------- next part -------------- An embedded message was scrubbed... From: Marc Haber <mh+debian-packages@zugschlus.de> Subject: Re: Bug#362409: [Adduser-devel] Bug#362409: delgroup --only-if-empty returns error code 1, if group is not empty Date: Thu, 22 Jun 2006 10:30:24 +0200 Size: 2544 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060622/8f5c7901/attachment-0001.mht