chmod dirs rwx instead of r-x so they can be moved
This commit is contained in:
parent
71886bee68
commit
8345eb3217
1 changed files with 1 additions and 1 deletions
2
btv
2
btv
|
@ -254,7 +254,7 @@ def serialize(snap, outdir, key, snap_from=None):
|
||||||
## fix permissions and ownership of created objects
|
## fix permissions and ownership of created objects
|
||||||
outdir_stat = os.stat(outdir)
|
outdir_stat = os.stat(outdir)
|
||||||
os.chown(directory, outdir_stat.st_uid, outdir_stat.st_gid)
|
os.chown(directory, outdir_stat.st_uid, outdir_stat.st_gid)
|
||||||
os.chmod(directory, 0o500)
|
os.chmod(directory, 0o700)
|
||||||
|
|
||||||
for file in os.listdir(directory):
|
for file in os.listdir(directory):
|
||||||
path = os.path.join(directory, file)
|
path = os.path.join(directory, file)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue