rdiff-backup-commits
[Top][All Lists]
Advanced

[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 14:21:10 +0000

CVSROOT:        /sources/rdiff-backup
Module name:    rdiff-backup
Changes by:     Andrew Ferguson <owsla> 07/08/13 14:21:10

Modified files:
        rdiff_backup   : rpath.py 

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

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/rdiff-backup/rdiff_backup/rpath.py?cvsroot=rdiff-backup&r1=1.111&r2=1.112

Patches:
Index: rpath.py
===================================================================
RCS file: /sources/rdiff-backup/rdiff-backup/rdiff_backup/rpath.py,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -b -r1.111 -r1.112
--- rpath.py    13 Aug 2007 14:09:17 -0000      1.111
+++ rpath.py    13 Aug 2007 14:21:10 -0000      1.112
@@ -832,7 +832,8 @@
                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"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]