pash: prevent password from leaking through set -x
This commit is contained in:
parent
e24b660909
commit
a6f3d72030
4
pash
4
pash
|
@ -178,6 +178,10 @@ main() {
|
||||||
# state on exit or Ctrl+C.
|
# state on exit or Ctrl+C.
|
||||||
trap 'stty echo icanon' INT EXIT
|
trap 'stty echo icanon' INT EXIT
|
||||||
|
|
||||||
|
# Ensure that debug mode is never enabled to
|
||||||
|
# prevent the password from leaking.
|
||||||
|
set +x
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
a*) pw_add "$2" ;;
|
a*) pw_add "$2" ;;
|
||||||
c*) pw_copy "$2" ;;
|
c*) pw_copy "$2" ;;
|
||||||
|
|
Loading…
Reference in New Issue