Added an explicit file mode setting when creating repository directories

This commit is contained in:
Gregory Ballantine 2022-08-31 20:16:21 -04:00
parent 7dc2432819
commit 9fa369b62e

View File

@ -30,7 +30,7 @@ func create_repo_dir(path string) {
_, err := os.Stat(path)
if os.IsNotExist(err) {
log.Printf("Creating directory %s.\n", path)
os.Mkdir(path, os.ModeDir)
os.Mkdir(path, 0755)
} else {
log.Printf("Directory %s already exists.\n", path)
}