2023-11-15 21:40:07 CST W46D3

This commit is contained in:
aggresss
2023-11-15 21:40:07 +08:00
parent 05345f7cdc
commit 6532a8c106
10 changed files with 543 additions and 13 deletions

View File

@@ -103,12 +103,12 @@ func main() {
os.Exit(1)
}
f, err := os.OpenFile(filename, os.O_RDONLY, 0666)
f, err := os.OpenFile(filename, os.O_RDONLY, 0644)
if err != nil {
fmt.Fprintf(os.Stderr, "Could not open %s\n", filename)
os.Exit(1)
}
outfile, err := os.OpenFile(outfilename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0755)
outfile, err := os.OpenFile(outfilename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil {
fmt.Fprintf(os.Stderr, "Could not open %s\n", outfilename)
os.Exit(1)