[Adduser-devel] Bug#375524: cdebootstrap: exim4-config doesn't
install; adduser is failing with chage, logic error.
Junichi Uekawa
dancer at netfort.gr.jp
Mon Jun 26 15:24:48 UTC 2006
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)) {
root at dancer64:/# chage -M 99999 Debian-exim
chage: the shadow password file is not present
root at dancer64:/# echo $?
15
root at dancer64:/# shadowconfig on
Shadow passwords are now on.
root at dancer64:/# chage -M 99999 Debian-exim
root at dancer64:/# echo $?
0
root at dancer64:/# shadowconfig off
Shadow passwords are now off.
root at dancer64:/# chage -M 99999 Debian-exim
chage: the shadow password file is not present
root at dancer64:/# 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
--
dancer@{debian.org,netfort.gr.jp} Debian Project
More information about the Adduser-devel
mailing list