Skip to content

Commit

Permalink
fix: file perm
Browse files Browse the repository at this point in the history
  • Loading branch information
hellodword committed Jul 3, 2024
1 parent fde668d commit 0978b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/filedevstore/filedevstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (s *fsstore) GetMany(ctx context.Context, ks []cid.Cid) <-chan blocks.Block

func (s *fsstore) Add(ctx context.Context, bs []blocks.Block) error {
for _, b := range bs {
if err := os.WriteFile(filepath.Join(s.path, b.Cid().String()), b.RawData(), 0777); err != nil {
if err := os.WriteFile(filepath.Join(s.path, b.Cid().String()), b.RawData(), 0644); err != nil {
return err
}
}
Expand All @@ -104,5 +104,5 @@ func (s *fsstore) IndexGet(ctx context.Context, key string) (value []byte, err e
}

func (s *fsstore) IndexPut(ctx context.Context, key string, value []byte) (err error) {
return os.WriteFile(filepath.Join(s.path, key), value, 0777)
return os.WriteFile(filepath.Join(s.path, key), value, 0644)
}

0 comments on commit 0978b55

Please sign in to comment.