diff options
author | Sami Kerola | 2016-03-14 22:38:30 +0100 |
---|---|---|
committer | Karel Zak | 2016-03-15 14:12:31 +0100 |
commit | 4cd4b6879516d5b18c554c9c9b3488fbc82a7a7e (patch) | |
tree | 00fbb6e7f46747d494b20c4840247c68dbb1fde4 /login-utils | |
parent | libmount: improve conversion from root= to the devname (diff) | |
download | kernel-qcow2-util-linux-4cd4b6879516d5b18c554c9c9b3488fbc82a7a7e.tar.gz kernel-qcow2-util-linux-4cd4b6879516d5b18c554c9c9b3488fbc82a7a7e.tar.xz kernel-qcow2-util-linux-4cd4b6879516d5b18c554c9c9b3488fbc82a7a7e.zip |
vipw: print only one new line when asking about shadow file
Commit 11b86e1733 changed printf() to puts() in favour of more simple
function, but forgot that puts() adds a new line to end of string. That new
line is neither needed, or expected, so use fputs() that is both a simple
printing function and comes without new line side effect.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils')
-rw-r--r-- | login-utils/vipw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/login-utils/vipw.c b/login-utils/vipw.c index b8e5b47c1..043865682 100644 --- a/login-utils/vipw.c +++ b/login-utils/vipw.c @@ -343,9 +343,9 @@ int main(int argc, char *argv[]) if (access(orig_file, F_OK) == 0) { char response[80]; - puts((program == VIGR) + fputs((program == VIGR) ? _("You are using shadow groups on this system.\n") - : _("You are using shadow passwords on this system.\n")); + : _("You are using shadow passwords on this system.\n"), stdout); /* TRANSLATORS: this program uses for y and n rpmatch(3), * which means they can be translated. */ |