[Adduser-devel] Bug#363182: Use of uninitialized value in printf at
/usr/sbin/adduser line 846.
Ted Percival
ted.percival at quest.com
Tue Apr 18 00:12:23 UTC 2006
Package: adduser
Version: 3.86
Severity: minor
adduser reports:
Use of uninitialized value in printf at /usr/sbin/adduser line 846.
whenever the cleanup function is called.
This is because of a misplaced close bracket.
A patch to fix this problem is attached.
Example run:
# adduser --system --debug test123
Selecting uid from range 100 to 999.
Adding system user `test123' with uid 108...
Adding new user `test123' (108) with group `nogroup'.
/usr/sbin/useradd -d /home/test123 -g nogroup -s /bin/false -u 108
test123
/usr/bin/chage -M 99999 test123
Creating home directory `/home/test123'.
Use of uninitialized value in printf at /usr/sbin/adduser line 846.
Stopped:
Removing directory `/home/test123'
rm -rf /home/test123
Removing user `test123'.
userdel test123
-Ted
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-1-686-smp
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages adduser depends on:
ii debconf [debconf-2.0] 1.4.72 Debian configuration management sy
ii passwd 1:4.0.15-5 change and administer password and
ii perl-base 5.8.8-4 The Pathologically Eclectic Rubbis
adduser recommends no packages.
-- debconf information:
adduser/homedir-permission: true
-------------- next part --------------
--- /tmp/adduser 2006-04-18 10:03:50.000000000 +1000
+++ /usr/sbin/adduser 2006-04-18 10:04:09.000000000 +1000
@@ -843,7 +843,7 @@
sub cleanup {
my ($msg) = @_;
- printf (gtx("Stopped: %s\n",$msg));
+ printf (gtx("Stopped: %s\n"),$msg);
if ($undohome) {
printf (gtx("Removing directory `%s'\n"),$undohome);
&systemcall('rm', '-rf', $undohome);
More information about the Adduser-devel
mailing list