Package: adduser
Version: 3.90
my $chage = &which('chage');
print "$chage -M 99999 $new_name\n" if ($verbose > 1);
# do _not_ use systemcall() here, since systemcall() dies on
# non-zero exit code and we need to do special handling here!
if (&systemcall($chage, '-M', '99999', $new_name)) {
if( ($?>>8) ne 15 ) {
&cleanup("$0: `$chage -M 99999 $new_name' returned error code " .
($?>>8) . ". Aborting.\n")
if ($?>>8);
&cleanup("$0: `$chage -M 99999 $new_name' exited from signal " .
($?&255) . ". Aborting.\n");
} else {
printf (gtx("%s failed with return code 15, shadow not enabled,
password aging cannot be set. Continuing.\n"), $chage);
}
}
Why are you calling systemcall here? It used to be
if (system('/usr/bin/chage', '-M', '99999', $new_name)) {
[EMAIL PROTECTED]:/# chage -M 99999 Debian-exim
chage: the shadow password file is not present
[EMAIL PROTECTED]:/# echo $?
15
[EMAIL PROTECTED]:/# shadowconfig on
Shadow passwords are now on.
[EMAIL PROTECTED]:/# chage -M 99999 Debian-exim
[EMAIL PROTECTED]:/# echo $?
0
[EMAIL PROTECTED]:/# shadowconfig off
Shadow passwords are now off.
[EMAIL PROTECTED]:/# chage -M 99999 Debian-exim
chage: the shadow password file is not present
[EMAIL PROTECTED]:/# echo $?
15
O: Setting up exim4-config (4.62-2) ...
P: Configuring package exim4-config
O: hostname:
O: Host name lookup failure
O:
O: hostname:
O: Host name lookup failure
O:
O: Adding system-user for exim (v4)
O: chage: the shadow password file is not present
O: adduser: `/usr/bin/chage -M 99999 Debian-exim' returned error code 15.
Aborting.
-O: 4838 files and directories currently installed.)
-O: Unpacking adduser (from .../bootstrap/adduser_3.87_all.deb) ...
+O: 4856 files and directories currently installed.)
+O: Unpacking adduser (from .../bootstrap/adduser_3.90_all.deb) ...
-O: Unpacking exim4-config (from .../exim4-config_4.62-1_all.deb) ...
+O: Unpacking exim4-config (from .../exim4-config_4.62-2_all.deb) ...
regards,
junichi
--
[EMAIL PROTECTED],netfort.gr.jp} Debian Project
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]