Skip to content

Commit 71b286b

Browse files
committed
file mode fixed
1 parent 326b4d6 commit 71b286b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

store/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (s *Store) Update(hash string, u *User, opts *Options) error {
187187
pwdPath := filepath.Join(keysDir, u.Hash()+".credential")
188188
if opts.Password != "" {
189189
data := []byte(u.Url(opts.Password))
190-
if err := fs.WriteFile(pwdPath, data, 0755); err != nil {
190+
if err := fs.WriteFile(pwdPath, data, 0600); err != nil {
191191
return err
192192
}
193193
} else if hash != u.Hash() {

0 commit comments

Comments
 (0)