diff options
author | Sami Kerola | 2012-02-29 00:49:43 +0100 |
---|---|---|
committer | Sami Kerola | 2012-03-18 14:28:04 +0100 |
commit | 4c5e1f8e7944a6e8db86066fd365517af9c3744b (patch) | |
tree | df42c9bc8659a141bbfa93fd4dcf3d897bd645fa /login-utils/vipw.c | |
parent | mesg: use rpmatch to yes/no question (diff) | |
download | kernel-qcow2-util-linux-4c5e1f8e7944a6e8db86066fd365517af9c3744b.tar.gz kernel-qcow2-util-linux-4c5e1f8e7944a6e8db86066fd365517af9c3744b.tar.xz kernel-qcow2-util-linux-4c5e1f8e7944a6e8db86066fd365517af9c3744b.zip |
vipw: use rpmatch to yes/no question
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils/vipw.c')
-rw-r--r-- | login-utils/vipw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/login-utils/vipw.c b/login-utils/vipw.c index c0ed0b3fb..992a3a306 100644 --- a/login-utils/vipw.c +++ b/login-utils/vipw.c @@ -347,11 +347,12 @@ int main(int argc, char *argv[]) printf((program == VIGR) ? _("You are using shadow groups on this system.\n") : _("You are using shadow passwords on this system.\n")); + /* TRANSLATORS: this program uses for y and n rpmatch(3), + * which means they can be translated. */ printf(_("Would you like to edit %s now [y/n]? "), orig_file); - /* EOF means no */ if (fgets(response, sizeof(response), stdin)) { - if (response[0] == 'y' || response[0] == 'Y') + if (rpmatch(response) == 1) edit_file(1); } } |