diff options
author | Sami Kerola | 2017-05-18 23:19:35 +0200 |
---|---|---|
committer | Karel Zak | 2017-05-19 11:43:34 +0200 |
commit | 36b608417b12c5cbd3f7769f13083c8d2757bbf5 (patch) | |
tree | 68c2bb9e6039983e9f1fc79397842e7b93a54ca1 /login-utils/chfn.c | |
parent | rename: make --no-act to imply --verbose (diff) | |
download | kernel-qcow2-util-linux-36b608417b12c5cbd3f7769f13083c8d2757bbf5.tar.gz kernel-qcow2-util-linux-36b608417b12c5cbd3f7769f13083c8d2757bbf5.tar.xz kernel-qcow2-util-linux-36b608417b12c5cbd3f7769f13083c8d2757bbf5.zip |
chfn: disable tab completion
The default readline tab completion that offers file listing from current
directory does not make any sense in this context.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils/chfn.c')
-rw-r--r-- | login-utils/chfn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/login-utils/chfn.c b/login-utils/chfn.c index d79a192cf..3a951a193 100644 --- a/login-utils/chfn.c +++ b/login-utils/chfn.c @@ -237,6 +237,7 @@ static char *ask_new_field(struct chfn_control *ctl, const char *question, printf("%s [%s]: ", question, def_val); __fpurge(stdin); #ifdef HAVE_LIBREADLINE + rl_bind_key('\t', rl_insert); if ((buf = readline(NULL)) == NULL) #else if (getline(&buf, &dummy, stdin) < 0) |