rdiff-backup-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Rdiff-backup-commits] Changes to rdiff-backup/rdiff_backup/Main.py


From: Ben Escoto
Subject: [Rdiff-backup-commits] Changes to rdiff-backup/rdiff_backup/Main.py
Date: Thu, 20 Oct 2005 16:20:31 -0400

Index: rdiff-backup/rdiff_backup/Main.py
diff -u rdiff-backup/rdiff_backup/Main.py:1.90 
rdiff-backup/rdiff_backup/Main.py:1.91
--- rdiff-backup/rdiff_backup/Main.py:1.90      Thu Oct 20 19:34:51 2005
+++ rdiff-backup/rdiff_backup/Main.py   Thu Oct 20 20:20:29 2005
@@ -450,6 +450,8 @@
        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):
@@ -555,6 +557,8 @@
        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:
@@ -735,6 +739,7 @@
                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:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]