summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/pass.13
-rwxr-xr-xsrc/password-store.sh2
2 files changed, 4 insertions, 1 deletions
diff --git a/man/pass.1 b/man/pass.1
index c09e228..668206d 100644
--- a/man/pass.1
+++ b/man/pass.1
@@ -359,6 +359,9 @@ for more info.
Specifies the number of seconds to wait before restoring the clipboard, by default
\fI45\fP seconds.
.TP
+.I PASSWORD_STORE_UMASK
+Sets the umask of all files modified by pass, by default \fI077\fP.
+.TP
.I EDITOR
The location of the text editor used by \fBedit\fP.
.SH SEE ALSO
diff --git a/src/password-store.sh b/src/password-store.sh
index f2ec8ec..e9a3c39 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -3,7 +3,7 @@
# Copyright (C) 2012 - 2014 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
# This file is licensed under the GPLv2+. Please see COPYING for more information.
-umask 077
+umask "${PASSWORD_STORE_UMASK:-077}"
GPG_OPTS="--quiet --yes --compress-algo=none"
GPG="gpg"