From 5796f2a69f8a6e6fc4d6b9fa23abe65d30253231 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 27 Jan 2020 23:51:31 +0200 Subject: [PATCH] kiss: comment --- kiss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kiss b/kiss index dc33b8a..db2f13f 100755 --- a/kiss +++ b/kiss @@ -76,6 +76,10 @@ root_cache() { # Disable echoing to the terminal while the password is inputted # by the user. The below commands read from '/dev/tty' to ensure # they work when run from a subshell. + # + # The variable '$cached' is used to check if we've been here + # before. We cannot check whether or not '$pass' is empty as the + # '[' command may be external which would result in /proc leakage. stty -F /dev/tty -echo read -r pass < /dev/tty && cached=1 stty -F /dev/tty echo