slackware-current/source/a/util-linux/util-linux.chfn.diff
Patrick J Volkerding c1b337e06e Sun Jun 28 21:57:58 UTC 2020
x/libwacom-1.4-x86_64-2.txz:  Rebuilt.
  Fix joystick property matching in udev rule. Thanks to Pixxt.
2020-06-29 08:59:53 +02:00

18 lines
550 B
Diff

--- ./login-utils/chfn.c.orig 2020-05-20 07:27:43.465013472 -0500
+++ ./login-utils/chfn.c 2020-06-27 14:11:54.733895362 -0500
@@ -236,12 +236,13 @@
if (!def_val)
def_val = "";
while (true) {
- printf("%s [%s]: ", question, def_val);
+ printf("%s [%s]:", question, def_val);
__fpurge(stdin);
#ifdef HAVE_LIBREADLINE
rl_bind_key('\t', rl_insert);
- if ((buf = readline(NULL)) == NULL)
+ if ((buf = readline(" ")) == NULL)
#else
+ printf(" ");
if (getline(&buf, &dummy, stdin) < 0)
#endif
errx(EXIT_FAILURE, _("Aborted."));