[systemd-devel] [PATCH] systemctl: always null-terminate the password

=?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Sz =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Sz
Mon Feb 28 02:25:53 PST 2011


---
 src/ask-password-api.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

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))) {
-- 
1.7.4.1



More information about the systemd-devel mailing list