Skip to content

Commit

Permalink
file perms
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Mulvey <kmulvey@linux.com>
  • Loading branch information
kmulvey committed Mar 25, 2023
1 parent 8f83aae commit cbe06fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/imagedup/hash/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func NewCache(file, globPattern, promNamespace string, numFiles int) (*Cache, er
prometheus.MustRegister(c.imageCacheMisses)

// try to open the file, if it doesnt exist, create it
var f, err = os.OpenFile(file, os.O_CREATE|os.O_RDWR|os.O_APPEND, 0755)
var f, err = os.OpenFile(file, os.O_RDWR|os.O_CREATE, 0755)
if err != nil {
return nil, fmt.Errorf("HashCache error opening file: %s, err: %w", file, err)
}
Expand Down

0 comments on commit cbe06fa

Please sign in to comment.