diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-10-20 20:43:50 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-10-20 20:43:50 +0000 |
commit | 799dad58cef1646126a65e5df343a3d15f412539 (patch) | |
tree | 9887d242ed969c1647ade8c2bee27a804f75e32d /rdiff-backup/rdiff_backup/Main.py | |
parent | 974fd3b1cbc302baa312b741cc06deec4c4e5481 (diff) | |
download | rdiff-backup-799dad58cef1646126a65e5df343a3d15f412539.tar.gz |
Fix for bug #14799 - autodetect whether destination handles highbit perms
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r1-0@640 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/Main.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/Main.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rdiff-backup/rdiff_backup/Main.py b/rdiff-backup/rdiff_backup/Main.py index 62ce7fc..2bed0c2 100644 --- a/rdiff-backup/rdiff_backup/Main.py +++ b/rdiff-backup/rdiff_backup/Main.py @@ -441,6 +441,8 @@ def backup_set_fs_globals(rpin, rpout): SetConnections.UpdateGlobal('fsync_directories', dest_fsa.fsync_dirs) SetConnections.UpdateGlobal('change_ownership', dest_fsa.ownership) SetConnections.UpdateGlobal('chars_to_quote', dest_fsa.chars_to_quote) + if not dest_fsa.high_perms: + SetConnections.UpdateGlobal('permission_mask', 0777) if Globals.chars_to_quote: FilenameMapping.set_init_quote_vals() def backup_touch_curmirror_local(rpin, rpout): @@ -546,6 +548,8 @@ def restore_set_fs_globals(target): if Globals.preserve_hardlinks != 0: SetConnections.UpdateGlobal('preserve_hardlinks', target_fsa.hardlinks) SetConnections.UpdateGlobal('change_ownership', target_fsa.ownership) + if not target_fsa.high_perms: + SetConnections.UpdateGlobal('permission_mask', 0777) if Globals.chars_to_quote is None: # otherwise already overridden if mirror_fsa.chars_to_quote: @@ -726,6 +730,7 @@ def single_set_fs_globals(rbdir): SetConnections.UpdateGlobal('preserve_hardlinks', fsa.hardlinks) SetConnections.UpdateGlobal('fsync_directories', fsa.fsync_dirs) SetConnections.UpdateGlobal('change_ownership', fsa.ownership) + if not fsa.high_perms: SetConnections.UpdateGlobal('permission_mask', 0777) SetConnections.UpdateGlobal('chars_to_quote', fsa.chars_to_quote) if Globals.chars_to_quote: for conn in Globals.connections: |