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@xxxxxx> --- login-utils/chfn.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.13.0 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html