reassign 375510 adduser 3.90
tag 375510 patch
thanks

Sorry for reporting this against the wrong package.  It appears to be
a bug in adduser, related to 316089.  According to a comment in the
source code, adduser should use system instead of systemcall to invoke
chage so that it can handle its failure if /etc/shadow doesn't exist.
The attach patch makes it do so.

-- 
Matt
diff -Nru adduser-3.90-orig/adduser adduser-3.90/adduser
--- adduser-3.90-orig/adduser   2006-06-26 07:18:18.000000000 -0700
+++ adduser-3.90/adduser        2006-06-26 07:19:24.000000000 -0700
@@ -410,7 +410,7 @@
     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 (system($chage, '-M', '99999', $new_name)) {
        if( ($?>>8) ne 15 ) {
            &cleanup("$0: `$chage -M 99999 $new_name' returned error code " . 
($?>>8) . ".  Aborting.\n")
              if ($?>>8);

Attachment: signature.asc
Description: Digital signature

Reply via email to