From f3832497b5c97fa2be72dd60fe81b4ea544cd0d0 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 25 Feb 2019 22:37:32 +0200 Subject: [PATCH] umask encrypted files correctly. --- pash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pash b/pash index 68ce7b6..8af6586 100755 --- a/pash +++ b/pash @@ -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" ;;