[Adduser-devel] Bug#110429: marked as done (addgroup does an exit(1) and break install scripts)

Debian Bug Tracking System owner@bugs.debian.org
Wed, 29 Jun 2005 21:03:12 -0700


Your message dated Thu, 30 Jun 2005 05:56:33 +0200
with message-id <20050630035633.GA23793@torres.l21.ma.zugschlus.de>
and subject line Bug#110429: Re: Bug#110429 acknowledged by developer (Re: Bug#110429: gnome-bin.postinst checks for group by reading /etc/group)
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)

--------------------------------------
Received: (at submit) by bugs.debian.org; 28 Aug 2001 16:14:57 +0000
>From thorild@update.uu.se Tue Aug 28 11:14:57 2001
Return-path: <thorild@update.uu.se>
Received: from tempo.update.uu.se [130.238.19.17] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 15blVw-0006Az-00; Tue, 28 Aug 2001 11:14:57 -0500
Received: from Tempo.update.uu.se (thorild@localhost [127.0.0.1])
	by Tempo.update.uu.se (8.12.0.Beta19/8.12.0.Beta19/Update-Iltempogigante) with ESMTP id f7SGEsWJ008221
	for <submit@bugs.debian.org>; Tue, 28 Aug 2001 18:14:54 +0200
Received: (from thorild@localhost)
	by Tempo.update.uu.se (8.12.0.Beta19/8.12.0.Beta19/Update-Iltempogigante-submit) id f7SGEs5S008217;
	Tue, 28 Aug 2001 18:14:54 +0200
From: Thorild Selen <thorild@Update.UU.SE>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15243.50046.267161.385392@Tempo.Update.UU.SE>
Date: Tue, 28 Aug 2001 18:14:54 +0200 (CEST)
To: submit@bugs.debian.org
Subject: gnome-bin.postinst checks for group by reading /etc/group
X-Mailer: VM 6.75 under Emacs 19.34.1
Delivered-To: submit@bugs.debian.org

Package: gnome-bin
Version: 1.2.13-9

gnome-bin.postinst checks for the presence of the group utmp by using
grep on /etc/group. This will not work correctly if, for example, NIS
or LDAP is used for groups. If the group utmp already exists but not
in /etc/group, then addgroup will still be called to create this
group, and addgroup will complain that the group already exists, and
package configuration will fail.

A better solution would probably be that instead of using
  if ! grep -q ^utmp: /etc/group; then
use something like
  if perl -e "exit(getgrnam('utmp') && 1)"; then
which doesn't make assumptions on how groups are stored on the system,
and will work correctly with NIS and LDAP.

/Thorild

---------------------------------------
Received: (at 110429-done) by bugs.debian.org; 30 Jun 2005 03:56:35 +0000
>From mh+debian-packages@zugschlus.de Wed Jun 29 20:56:35 2005
Return-path: <mh+debian-packages@zugschlus.de>
Received: from 5301d.unt0.torres.l21.ma.zugschlus.de (torres.int.l21.ma.zugschlus.de) [217.151.83.1] (Debian-exim)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DnqAF-0005Oo-00; Wed, 29 Jun 2005 20:56:35 -0700
Received: from mh by torres.int.l21.ma.zugschlus.de with local (Exim 4.51)
	id 1DnqAE-0006U6-1e; Thu, 30 Jun 2005 05:56:34 +0200
Date: Thu, 30 Jun 2005 05:56:33 +0200
From: Marc Haber <mh+debian-packages@zugschlus.de>
To: Thorild Selen <thorild@Update.UU.SE>
Cc: 110429-done@bugs.debian.org
Subject: Re: Bug#110429: Re: Bug#110429 acknowledged by developer (Re: Bug#110429: gnome-bin.postinst checks for group by reading /etc/group)
Message-ID: <20050630035633.GA23793@torres.l21.ma.zugschlus.de>
References: <87itf8b0kp.fsf@falcon.wanadoo.fr> <15243.50046.267161.385392@Tempo.Update.UU.SE> <handler.110429.D110429.99901684229908.notifdone@bugs.debian.org> <15243.62238.26288.908420@Tempo.Update.UU.SE> <20040324075956.GA15024@torres.ka0.zugschlus.de> <20050618142435.GA22684@scyw00225.scy001.de> <17091.7326.46094.253493@Psilocybe.Update.UU.SE>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <17091.7326.46094.253493@Psilocybe.Update.UU.SE>
User-Agent: Mutt/1.5.9i
Delivered-To: 110429-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

On Thu, Jun 30, 2005 at 12:11:42AM +0200, Thorild Selen wrote:
> Go ahead and close it, it looks fixed enough to me.

Thanks. Doing so.

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