On Wed 20 Nov 2013 at 12:43:06PM +0000, Matthew Richardson wrote: > To this end, I've attached a simple patch which allows the umask to be > overridden in an environment variable.
> --- /usr/bin/pass 2013-11-20 12:41:42.000000000 +0000 > +++ /usr/bin/pass.new 2013-11-20 12:42:02.000000000 +0000 > @@ -3,7 +3,8 @@ > # Copyright (C) 2012 Jason A. Donenfeld <[email protected]>. All Rights > Reserved. > # This file is licensed under the GPLv2+. Please see COPYING for more > information. > > -umask 077 > +UMASK="${PASSWORD_STORE_UMASK:-077}" > +umask UMASK > > PREFIX="${PASSWORD_STORE_DIR:-$HOME/.password-store}" > ID="$PREFIX/.gpg-id" I believe you have a typo. It also seems unnecessary to introduce a new variable that is consumed once, immediately: umask "${PASSWORD_STORE_UMASK:-077}" I'm sure a patch for the man page would also be appreciated. guns
pgpCgDdETeR0g.pgp
Description: PGP signature
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
