Skip to content

Commit

Permalink
feat(company): Fix output file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
qu35t-code authored Jun 17, 2024
1 parent 3586e99 commit 1532bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/company.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var companyCmd = &cobra.Command{
wordlist := generateCompanyPasslist(companyName)

if config.GlobalConfig.OutputFile != "" {
file, err := os.OpenFile(config.GlobalConfig.OutputFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
file, err := os.OpenFile(config.GlobalConfig.OutputFile, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 1532bb1

Please sign in to comment.