void-packages/srcpkgs/util-linux/patches/fix-musl-2.patch
2015-08-02 00:22:34 +02:00

13 lines
383 B
Diff

Fixes rendering issue with chsh
--- login-utils/chsh.c.orig 2015-08-01 23:56:41.281133707 +0200
+++ login-utils/chsh.c 2015-08-01 23:56:52.116132896 +0200
@@ -179,6 +179,7 @@ static char *ask_new_shell(char *questio
if (!oldshell)
oldshell = "";
printf("%s [%s]: ", question, oldshell);
+ fflush(stdout);
sz = getline(&ans, &dummy, stdin);
if (sz == -1)
return NULL;