chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53bdb7c
)
systemctl: always null-terminate the password
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 28 Feb 2011 10:25:53 +0000
(11:25 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 28 Feb 2011 21:17:36 +0000
(22:17 +0100)
src/ask-password-api.c
patch
|
blob
|
history
diff --git
a/src/ask-password-api.c
b/src/ask-password-api.c
index dd54fb6abf22a0680f0849b67fd31f138a5a180a..af1b611f2727e1f57561dd7eb3ba0049e0deacbb 100644
(file)
--- 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))) {