Added an explicit file mode setting when creating repository directories
This commit is contained in:
parent
7dc2432819
commit
9fa369b62e
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user