1
0
mirror of synced 2026-04-26 20:36:26 +00:00

Do not run "passwd" via runCommand

runCommand captures STDOUT for logging which is not desired for
interactive commands.

Makes --passwd usable again.

Thanks to Christan Herzog for the bug report.
This commit is contained in:
Axel Beckert
2013-08-24 00:12:44 +02:00
parent 97b0ed29c0
commit 3b806d9f25
2 changed files with 4 additions and 1 deletions

View File

@@ -3927,7 +3927,7 @@ sub setupRootPassword
{
if ( -x $MOUNT_POINT . "/usr/bin/passwd" )
{
runCommand("chroot $MOUNT_POINT /usr/bin/passwd", \%CONFIG);
system("chroot $MOUNT_POINT /usr/bin/passwd");
}
else
{

3
debian/changelog vendored
View File

@@ -1,6 +1,9 @@
xen-tools (4.4~dev-1) UNRELEASED; urgency=low
* Also switch from cdn.debian.net to http.debian.net in xen-tools.conf
* Do not run "passwd" via runCommand as that one captures STDOUT for
logging. Makes --passwd usable again. Thanks to Christan Herzog for
the bug report.
-- Axel Beckert <abe@debian.org> Fri, 23 Aug 2013 21:13:07 +0200