util-linux: fix buffering issue for chsh.

This commit is contained in:
Enno Boland 2015-08-02 00:22:28 +02:00
parent 8c942dd508
commit 5462c3136f
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,13 @@
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;

View file

@ -1,7 +1,7 @@
# Template file for 'util-linux'
pkgname=util-linux
version=2.26.2
revision=5
revision=6
short_desc="Miscellaneous linux utilities"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://userweb.kernel.org/~kzak/util-linux-ng"