diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-27 21:51:31 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-27 21:51:31 +0000 |
commit | b404e0f2d04d7343da102380862ffa78b829e49c (patch) | |
tree | e8215d5d5053f6e95871f91c2c1536d1e2421249 /kiss | |
parent | 68c7ab7473f68cbae78010ba1335541deb85154d (diff) | |
download | cpt-b404e0f2d04d7343da102380862ffa78b829e49c.tar.gz |
kiss: comment
FossilOrigin-Name: ef01e7bc315600cc66246410bd2957ccc690ed66eb4285ab694ed47a48f8e17d
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |