[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Rdiff-backup-commits] rdiff-backup/rdiff_backup rpath.py
From: |
Andrew Ferguson |
Subject: |
[Rdiff-backup-commits] rdiff-backup/rdiff_backup rpath.py |
Date: |
Mon, 13 Aug 2007 16:11:15 +0000 |
CVSROOT: /sources/rdiff-backup
Module name: rdiff-backup
Changes by: Andrew Ferguson <owsla> 07/08/13 16:11:15
Modified files:
rdiff_backup : rpath.py
Log message:
More robust workaround for EFTYPE only being present on BSD
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/rdiff-backup/rdiff_backup/rpath.py?cvsroot=rdiff-backup&r1=1.112&r2=1.113
Patches:
Index: rpath.py
===================================================================
RCS file: /sources/rdiff-backup/rdiff-backup/rdiff_backup/rpath.py,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -b -r1.112 -r1.113
--- rpath.py 13 Aug 2007 14:21:10 -0000 1.112
+++ rpath.py 13 Aug 2007 16:11:15 -0000 1.113
@@ -832,8 +832,8 @@
try:
self.conn.os.chmod(self.path, permissions &
Globals.permission_mask)
except OSError, e:
- # XXX: BSD defines EFTYPE as 79, but it is not in python
- if e.errno == 79 and not self.isdir():
+ if e.strerror == "Inappropriate file type or format" \
+ 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"