[Pkg-shadow-commits] r496 - branches/experimental/debian/patches
Nicolas FRANCOIS
nekral-guest at costa.debian.org
Tue Aug 30 18:10:07 UTC 2005
Author: nekral-guest
Date: 2005-08-30 18:10:06 +0000 (Tue, 30 Aug 2005)
New Revision: 496
Modified:
branches/experimental/debian/patches/443_chage_exit_values
Log:
Add the chage exit values documentation patch, and update the header.
Modified: branches/experimental/debian/patches/443_chage_exit_values
===================================================================
--- branches/experimental/debian/patches/443_chage_exit_values 2005-08-30 17:45:01 UTC (rev 495)
+++ branches/experimental/debian/patches/443_chage_exit_values 2005-08-30 18:10:06 UTC (rev 496)
@@ -3,19 +3,8 @@
system doesn't have shadowed passwords.
Fixes: #317012
-Status wrt upstream: upstream only differentiate E_SUCCESS and E_NOPERM,
- other values could be used (E_USAGE, E_NOTFOUND or
- E_PW_UPDATE - like in groupdel/userdel)
- I chose to only have E_SUCCESS/E_NOPERM, for future
- backward compatibility.
- Note for 4.0.12: as upstream now uses the 3 exit code,
- the exit code for no shadow password file has been changed
- to 4
+Status wrt upstream: will be in 4.0.13
- This patch should really be forwarded upstream now
-
-Note: upstream still has an exit (1)
-
Index: shadow-4.0.12/src/chage.c
===================================================================
--- shadow-4.0.12.orig/src/chage.c 2005-08-17 11:51:15.000000000 +0200
@@ -45,3 +34,39 @@
#define E_USAGE 2 /* invalid command syntax */
#define E_BAD_ARG 3 /* invalid argument to option */
+#define E_SHADOW_NOTFOUND 14 /* no shadow password file */
+Index: shadow-4.0.12/man/chage.1.xml
+===================================================================
+--- shadow-4.0.12.orig/man/chage.1.xml 2005-08-10 10:58:05.000000000 +0200
++++ shadow-4.0.12/man/chage.1.xml 2005-08-30 19:55:45.000000000 +0200
+@@ -183,6 +183,31 @@
+
+ </refsect1>
+
++ <refsect1 id='exit_values'>
++ <title>EXIT VALUES</title>
++ <para>
++ The <command>chage</command> command exits with the following values:
++ <variablelist>
++ <varlistentry>
++ <term><replaceable>0</replaceable></term>
++ <listitem>success</listitem>
++ </varlistentry>
++ <varlistentry>
++ <term><replaceable>1</replaceable></term>
++ <listitem>permission denied</listitem>
++ </varlistentry>
++ <varlistentry>
++ <term><replaceable>2</replaceable></term>
++ <listitem>invalid command syntax</listitem>
++ </varlistentry>
++ <varlistentry>
++ <term><replaceable>14</replaceable></term>
++ <listitem>can't find the shadow password file</listitem>
++ </varlistentry>
++ </variablelist>
++ </para>
++ </refsect1>
++
+ <refsect1 id='see_also'>
+ <title>SEE ALSO</title>
+ <para><citerefentry>
More information about the Pkg-shadow-commits
mailing list