summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2007-08-13 14:09:17 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2007-08-13 14:09:17 +0000
commitc1f4770afa16e81eb6eabb33b17da81410ed0dcb (patch)
treeed6acc3ec079af2af56ba06b9d5724c3e2c59ddb /rdiff-backup/rdiff_backup
parent89a7c77e210a0dc2bcb3b5471303f8230735692f (diff)
downloadrdiff-backup-c1f4770afa16e81eb6eabb33b17da81410ed0dcb.tar.gz
Fix typo
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@844 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r--rdiff-backup/rdiff_backup/rpath.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py
index b6b7578..c6c2092 100644
--- a/rdiff-backup/rdiff_backup/rpath.py
+++ b/rdiff-backup/rdiff_backup/rpath.py
@@ -831,8 +831,8 @@ class RPath(RORPath):
"""Wrapper around os.chmod"""
try:
self.conn.os.chmod(self.path, permissions & Globals.permission_mask)
- except OSError, exc:
- if exc[0] == errno.EFTYPE and not self.isdir():
+ except OSError, e:
+ if e.errno == errno.EFTYPE and not self.isdir():
# Some systems throw this error if try to set sticky bit
# on a non-directory. Remove sticky bit and try again.
log.Log("Unable to set permissions of %s to %o - trying again"