X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=passman;h=be7cda6b6458d4cc00fa075725bf2267e929f8d9;hb=678ee0494e8868dd986d8c5aaa02c7719f5263a3;hp=b6e15279f6736a67689780ee4b17da74cc7e8224;hpb=14e0e899f2607613902b733ada3fa1db9dd08cb5;p=passman.git diff --git a/passman b/passman index b6e1527..be7cda6 100755 --- a/passman +++ b/passman @@ -1,11 +1,10 @@ #!/bin/sh -e # passman -- simple password manager -# Copyright (C) 2013-2016 Sergey Matveev (stargrave@stargrave.org) +# Copyright (C) 2013-2019 Sergey Matveev (stargrave@stargrave.org) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. +# the Free Software Foundation; version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -38,6 +37,7 @@ add) [ -n "$passwd" ] || passwd=$(generator) echo Adding password for $dst mkdir -p $DB/$dst + umask 077 echo "$passwd" > $DB/$dst/passwd ;; *)