<para>can't update group file</para>
</listitem>
</varlistentry>
+ <term><replaceable>11</replaceable></term>
+ <listitem>
+ <para>E_CLEANUP_SERVICE: can't setup cleanup service</para>
+ </listitem>
+ </varlistentry>
+ <term><replaceable>12</replaceable></term>
+ <listitem>
+ <para>E_PAM_USERNAME: can't determine your username for use with pam</para>
+ </listitem>
+ </varlistentry>
+ <term><replaceable>13</replaceable></term>
+ <listitem>
+ <para>E_PAM_ERROR: pam returned an error, see syslog facility id groupmod for the PAM error message</para>
+ </listitem>
+ </varlistentry>
</variablelist>
</para>
</refsect1>
#define E_NOTFOUND 6 /* specified group doesn't exist */
#define E_NAME_IN_USE 9 /* group name already in use */
#define E_GRP_UPDATE 10 /* can't update group file */
+#define E_CLEANUP_SERVICE 11 /* can't setup cleanup service */
+#define E_PAM_USERNAME 12 /* can't determine your username for use with pam */
+#define E_PAM_ERROR 13 /* pam returned an error, see Syslog facility id groupmod */
+
+
/*
* Global variables
*/
fprintf (stderr,
_("%s: Cannot setup cleanup service.\n"),
Prog);
- exit (1);
+ exit (E_CLEANUP_SERVICE);
}
process_flags (argc, argv);
fprintf (stderr,
_("%s: Cannot determine your user name.\n"),
Prog);
- exit (1);
+ exit (E_PAM_USERNAME);
}
retval = pam_start ("groupmod", pampw->pw_name, &conv, &pamh);
if (NULL != pamh) {
(void) pam_end (pamh, retval);
}
- exit (1);
+ exit (E_PAM_ERROR);
}
(void) pam_end (pamh, retval);
#endif /* USE_PAM */