Commit 70dd7868 authored by owsla's avatar owsla

Python bug -- errno.EFTYPE is not defined, but necessary to check on BSD


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@845 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent d62f77e8
...@@ -832,7 +832,8 @@ class RPath(RORPath): ...@@ -832,7 +832,8 @@ class RPath(RORPath):
try: try:
self.conn.os.chmod(self.path, permissions & Globals.permission_mask) self.conn.os.chmod(self.path, permissions & Globals.permission_mask)
except OSError, e: 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 # Some systems throw this error if try to set sticky bit
# on a non-directory. Remove sticky bit and try again. # on a non-directory. Remove sticky bit and try again.
log.Log("Unable to set permissions of %s to %o - trying again" log.Log("Unable to set permissions of %s to %o - trying again"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment