From 9ddd4101dd985e3460ea02edeaa3c414a53589b1 Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Thu, 30 Jan 2020 08:17:44 +0000 Subject: kiss: Fix stdin with su FossilOrigin-Name: f7b492cd8ca457696adbb1ff749f0c3da51dc425166763a125d74523ee0ef2df --- kiss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kiss') diff --git a/kiss b/kiss index 69e2d05..a95fd0b 100755 --- a/kiss +++ b/kiss @@ -55,7 +55,8 @@ as_root() { elif command -v doas >/dev/null; then KISS_FORCE="$KISS_FORCE" doas "$@" else - su -pc "KISS_FORCE=$KISS_FORCE $*" + exec 3<&0 + su -pc "KISS_FORCE=$KISS_FORCE $* <&3"