summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2007-08-13 14:21:10 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2007-08-13 14:21:10 +0000
commitb3df1f474e6928f54083a5d2746e49a4e1019bef (patch)
treeadaae8bd009eb6c8ad4ab6fe6ae2378a35204a59
parentc1f4770afa16e81eb6eabb33b17da81410ed0dcb (diff)
downloadrdiff-backup-b3df1f474e6928f54083a5d2746e49a4e1019bef.tar.gz
Python bug -- errno.EFTYPE is not defined, but necessary to check on BSD
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@845 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/rdiff_backup/rpath.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py
index c6c2092..fe5277f 100644
--- a/rdiff-backup/rdiff_backup/rpath.py
+++ b/rdiff-backup/rdiff_backup/rpath.py
@@ -832,7 +832,8 @@ class RPath(RORPath):
try:
self.conn.os.chmod(self.path, permissions & Globals.permission_mask)
except OSError, e:
- if e.errno == errno.EFTYPE and not self.isdir():
+ # XXX: BSD defines EFTYPE as 79, but it is not in python
+ if e.errno == 79 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"