Bug#773704: libsys-hostname-long-perl: additional output of su command not filtered
Christian Vieser
cvieser at web.de
Mon Dec 22 11:30:37 UTC 2014
Package: libsys-hostname-long-perl
Version: 1.4-2
Severity: normal
Dear Maintainer,
in case the home directory of user nobody doesn't exist, "su" creates
it and reports this action on stdout, like this:
# su -s /bin/sh nobody -c hostname
Creating directory '/nonexistent'.
myserver.example.com
The perl function hostname_long() concatenates these two lines in
reverse order, so the returned string value is
myserver.example.comCreating directory '/nonexistent'.
I suggest to ignore all possible additional output of "su" and only
return the last line. Of course it would be preferable to prevent
su from creating the directory at all, but I couldn't find a solution
for this.
Thank you very much,
Christian
-- System Information:
Debian Release: 7.7
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
More information about the pkg-perl-maintainers
mailing list