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

Tomasz Kłoczko kloczek at zie.pg.gda.pl
Fri Sep 2 16:24:48 UTC 2005


On Fri, 2 Sep 2005, Christian Perrier wrote:

> I had mail exchanges with Mark about changes to useradd exit codes.
> 
> Forwarding his answers it for the record
> 
> ----- Forwarded message from Marc Haber <mh+0523mail at zugschlus.de> -----
> 
> Date: Thu, 1 Sep 2005 10:08:36 +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 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?

No. Add correct dependencies rules.

If you will require shadow < 4.0.13 and shadow >= 4.0.3 exit code may be 
for this case 3. If shadow >= 4.0.13 exit code 15.
First version package you can release for shadow < 4.0.13 and >= 4.0.3 and
second for shadow >= 4.0.13.

kloczek
-- 
-----------------------------------------------------------
*Ludzie nie mają problemów, tylko sobie sami je stwarzają*
-----------------------------------------------------------
Tomasz Kłoczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek at rudy.mif.pg.gda.pl*


More information about the Pkg-shadow-devel mailing list