diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-09-13 23:57:33 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-09-13 23:57:33 +0000 |
commit | 68f128f2051d52704eb17b4244a9069ae01b25a6 (patch) | |
tree | 4d5e3b09bfb8a6283c2b1c47317209f74a0151b5 /rdiff-backup/rdiff_backup/rpath.py | |
parent | 363e3b267f7bc8d63c50ea7c76560ee3ff5d6960 (diff) | |
download | rdiff-backup-68f128f2051d52704eb17b4244a9069ae01b25a6.tar.gz |
Final changes for 0.12.4 (Mostly unreadable dir fix)
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-12@433 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/rpath.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py index 0f3ddc1..6f40edd 100644 --- a/rdiff-backup/rdiff_backup/rpath.py +++ b/rdiff-backup/rdiff_backup/rpath.py @@ -154,7 +154,7 @@ def copy_attribs(rpin, rpout): check_for_files(rpin, rpout) if rpin.issym(): return # symlinks have no valid attributes if Globals.change_ownership: apply(rpout.chown, rpin.getuidgid()) - if Globals.change_permissions: rpout.chmod(rpin.getperms()) + rpout.chmod(rpin.getperms()) if not rpin.isdev(): rpout.setmtime(rpin.getmtime()) def cmp_attribs(rp1, rp2): @@ -261,7 +261,6 @@ class RORPath: for key in self.data.keys(): # compare dicts key by key if (key == 'uid' or key == 'gid') and self.issym(): pass # Don't compare gid/uid for symlinks - elif key == 'perms' and not Globals.change_permissions: pass elif key == 'atime' and not Globals.preserve_atime: pass elif key == 'devloc' or key == 'nlink': pass elif key == 'size' and not self.isreg(): pass @@ -294,7 +293,6 @@ class RORPath: elif key == 'atime' and not Globals.preserve_atime: pass elif key == 'devloc' or key == 'nlink': pass elif key == 'size' and not self.isreg(): pass - elif key == 'perms' and not Globals.change_permissions: pass elif key == 'inode': pass elif (not other.data.has_key(key) or self.data[key] != other.data[key]): return 0 @@ -312,7 +310,6 @@ class RORPath: (self.issym() or not compare_ownership)): # Don't compare gid/uid for symlinks, or if told not to pass - elif key == 'perms' and not Globals.change_permissions: pass elif key == 'atime' and not Globals.preserve_atime: pass elif key == 'devloc' or key == 'nlink': pass elif key == 'size' and not self.isreg(): pass |