summaryrefslogtreecommitdiff
path: root/src/getpw
diff options
context:
space:
mode:
Diffstat (limited to 'src/getpw')
-rwxr-xr-xsrc/getpw2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/getpw b/src/getpw
index 8115716..5416797 100755
--- a/src/getpw
+++ b/src/getpw
@@ -2,6 +2,8 @@
# getpw -- read password
+trap 'stty echo; echo; exit 130' INT
+
printf 'Enter password: ' > /dev/tty
stty -f /dev/tty -echo
read PASSWORD < /dev/tty