From 6816bb23328825d969e6e21d1e282163a5264dfa Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Tue, 20 Sep 2016 21:39:49 -0400 Subject: [PATCH] sh/init.sh.linux: discard stderr when reading /proc/self/environ bash 4.4 doesn't like reading null bytes, and warns about it loudly. Bug: https://bugs.gentoo.org/594534 --- sh/init.sh.Linux.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in index 344f627..4eadfbf 100644 --- a/sh/init.sh.Linux.in +++ b/sh/init.sh.Linux.in @@ -21,7 +21,7 @@ fi mountproc=true f=/proc/self/environ if [ -e $f ]; then - if [ "$(VAR=a cat $f)" = "$(VAR=b cat $f)" ]; then + if [ "$(VAR=a cat $f 2>/dev/null)" = "$(VAR=b cat $f 2>/dev/null)" ]; then eerror "You have cruft in /proc that should be deleted" else einfo "/proc is already mounted" -- 2.10.0