umask encrypted files correctly.

This commit is contained in:
Dylan Araps 2019-02-25 22:37:32 +02:00
parent 75f1a70e09
commit f3832497b5
1 changed files with 2 additions and 0 deletions

2
pash
View File

@ -163,6 +163,8 @@ main() {
[[ $1 == [a]* && -f $2.gpg ]] &&
die "Pass file '$2' already exists."
umask 077
case $1 in
a*) pw_add "$2" ;;
d*) pw_del "$2" ;;