Skip to content

Commit

Permalink
file mode fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
bugtaker committed Jan 12, 2019
1 parent 326b4d6 commit 71b286b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (s *Store) Update(hash string, u *User, opts *Options) error {
pwdPath := filepath.Join(keysDir, u.Hash()+".credential")
if opts.Password != "" {
data := []byte(u.Url(opts.Password))
if err := fs.WriteFile(pwdPath, data, 0755); err != nil {
if err := fs.WriteFile(pwdPath, data, 0600); err != nil {
return err
}
} else if hash != u.Hash() {
Expand Down

0 comments on commit 71b286b

Please sign in to comment.