Commit 26171500 authored by jkvis's avatar jkvis

Force copy setgid

parent a86aed2b
......@@ -198,8 +198,8 @@ def initiate_transfer(user):
if not os.path.exists(primary_path):
try:
os.makedirs(primary_path, mode=0770)
os.chmod(primary_path, 0770)
os.makedirs(primary_path, mode=02770)
os.chmod(primary_path, 02770)
except (OSError, IOError) as excp:
transfer.status = TRANSFER_FAILED
db.session.commit()
......@@ -220,8 +220,8 @@ def initiate_transfer(user):
if not os.path.exists(secondary_path):
try:
os.makedirs(secondary_path, mode=0770)
os.chmod(secondary_path, 0770)
os.makedirs(secondary_path, mode=02770)
os.chmod(secondary_path, 02770)
except (OSError, IOError) as excp:
# Clean up.
transfer.status = TRANSFER_FAILED
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment