[systemd-commits] src/ask-password-api.c

Lennart Poettering lennart at kemper.freedesktop.org
Mon Feb 28 13:28:26 PST 2011


 src/ask-password-api.c |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit a9bd141b4a144d8da062f9f8fa13869bba0c7bce
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date:   Mon Feb 28 11:25:53 2011 +0100

    systemctl: always null-terminate the password

diff --git a/src/ask-password-api.c b/src/ask-password-api.c
index dd54fb6..af1b611 100644
--- a/src/ask-password-api.c
+++ b/src/ask-password-api.c
@@ -179,8 +179,6 @@ int ask_password_tty(
                 }
         }
 
-        if (ttyfd >= 0)
-
         passphrase[p] = 0;
 
         if (!(*_passphrase = strdup(passphrase))) {



More information about the systemd-commits mailing list