Skip to content

Commit

Permalink
fix: security writefile permission 644 to 600
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Dec 21, 2024
1 parent 7180e25 commit e54c645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func loadRules(tryToCreateExampleRule bool) (links []Link) {
log.Println(WARN_RULE_NOT_FOUND)
if tryToCreateExampleRule {
log.Println(INFO_TRY_CREATE_EXAMPLE_RULE)
err := os.WriteFile(RULES_FILE, []byte(DEFAULT_RULE), 0644)
err := os.WriteFile(RULES_FILE, []byte(DEFAULT_RULE), 0600)
if err != nil {
log.Println(WARN_RULE_CREATE_FILE)
return links
Expand Down

0 comments on commit e54c645

Please sign in to comment.