diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-03-23 05:57:39 -0300 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-03-23 05:57:39 -0300 |
commit | 1476be164b8eadb258301015b6fd21dcb64118c0 (patch) | |
tree | f513857dba7ae38f17aec89f3bed9fb33e3195bc | |
parent | 6fb1b95c6357a23a855cfb26f09c836df55f8dd6 (diff) | |
download | pass-1476be164b8eadb258301015b6fd21dcb64118c0.tar.gz pass-1476be164b8eadb258301015b6fd21dcb64118c0.tar.bz2 pass-1476be164b8eadb258301015b6fd21dcb64118c0.zip |
umask: allow overridable
Suggested-by: Matthew Richardson <m.richardson@ed.ac.uk>
-rw-r--r-- | man/pass.1 | 3 | ||||
-rwxr-xr-x | src/password-store.sh | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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" |