Skip to content

Commit d57cea4

Browse files
committed
Have Murfey server make directories with stricter permissions
1 parent 5fca1bc commit d57cea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/murfey/server/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,9 +1164,9 @@ def suggest_path(visit_name, params: SuggestedPathParameters):
11641164
count = count + 1 if count else 2
11651165
check_path = check_path.parent / f"{check_path_name}{count}"
11661166
if params.touch:
1167-
check_path.mkdir()
1167+
check_path.mkdir(mode=0o750)
11681168
if params.extra_directory:
1169-
(check_path / secure_filename(params.extra_directory)).mkdir()
1169+
(check_path / secure_filename(params.extra_directory)).mkdir(mode=0o750)
11701170
return {"suggested_path": check_path.relative_to(machine_config.rsync_basepath)}
11711171

11721172

0 commit comments

Comments
 (0)