util-linux: fix buffering issue for chsh.
This commit is contained in:
parent
8c942dd508
commit
5462c3136f
2 changed files with 14 additions and 1 deletions
13
srcpkgs/util-linux/patches/fix-musl-2.patch
Normal file
13
srcpkgs/util-linux/patches/fix-musl-2.patch
Normal 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;
|
||||
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue