[Pkg-shadow-devel] (forw) Exchanges with Marc Haber 2/3

Christian Perrier bubulle at debian.org
Fri Sep 2 05:26:48 UTC 2005


----- Forwarded message from Marc Haber <mh+0523mail at zugschlus.de> -----

Date: Thu, 1 Sep 2005 11:13:21 +0200
From: Marc Haber <mh+0523mail at zugschlus.de>
To: Christian Perrier <bubulle at debian.org>
Subject: Re: [Adduser-devel] (forw) [Pkg-shadow-commits] r502 - branches/experimental/debian/patches

On Thu, Sep 01, 2005 at 11:07:12AM +0200, Christian Perrier wrote:
> Quoting Marc Haber (mh+0523mail at zugschlus.de):
> > On Thu, Sep 01, 2005 at 08:28:03AM +0200, Christian Perrier wrote:
> > > Marc, the following change will affect adduser.
> > > 
> > > In shadow 4.0.11.1 (uploaded in experimental only), we added a 3 exit
> > > code to useradd when the shadow file wasn't found.
> > > 
> > > In order to make this more consistent with the use of exit codes in
> > > all shadow utilities, this has been changed to 15.
> > > 
> > > As this has been adopted upstream, this is very unlikely to change
> > > now, so you can probably safely prepare adduser to support this.
> > 
> > *GRRRR*
> > 
> > This is why I asked beforehand for the exit code, since the check for
> > exit code 3 is already in adduser. Am I better off to check for both 3
> > and 15?
> 
> Well, the 3 exit code will be:
> 
> #define E_BAD_ARG	3	/* invalid argument to option */

$CURSE.

OK, I'll conflict with passwd versions which return 3 on shadow failure.

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

----- End forwarded message -----

-- 





More information about the Pkg-shadow-devel mailing list