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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Rdiff-backup-commits] rdiff-backup CHANGELOG rdiff_backup/eas_acls.py


From: Andrew Ferguson
Subject: [Rdiff-backup-commits] rdiff-backup CHANGELOG rdiff_backup/eas_acls.py
Date: Thu, 24 Apr 2008 17:08:32 +0000

CVSROOT:        /sources/rdiff-backup
Module name:    rdiff-backup
Changes by:     Andrew Ferguson <owsla> 08/04/24 17:08:32

Modified files:
        .              : CHANGELOG 
        rdiff_backup   : eas_acls.py 

Log message:
        Improve Unicode support when logging in eas_acls.py (Fix from Saptarshi 
Guha)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/rdiff-backup/CHANGELOG?cvsroot=rdiff-backup&r1=1.266&r2=1.267
http://cvs.savannah.gnu.org/viewcvs/rdiff-backup/rdiff_backup/eas_acls.py?cvsroot=rdiff-backup&r1=1.28&r2=1.29

Patches:
Index: CHANGELOG
===================================================================
RCS file: /sources/rdiff-backup/rdiff-backup/CHANGELOG,v
retrieving revision 1.266
retrieving revision 1.267
diff -u -b -r1.266 -r1.267
--- CHANGELOG   13 Apr 2008 11:25:21 -0000      1.266
+++ CHANGELOG   24 Apr 2008 17:08:32 -0000      1.267
@@ -1,6 +1,10 @@
 New in v1.1.16 (????/??/??)
 ---------------------------
 
+Improve Unicode support by escaping Unicode characters in filenames
+when printing them in log messages from eas_acls.py. (Fix from
+Saptarshi Guha)
+
 Handle Windows' lack of getuid(), getgid(), hardlinks and symlinks in
 fs_abilities.py. Use subproces.Popen() on Windows since it does not support
 os.popen2(). (Patch from Josh Nisly)

Index: rdiff_backup/eas_acls.py
===================================================================
RCS file: /sources/rdiff-backup/rdiff-backup/rdiff_backup/eas_acls.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- rdiff_backup/eas_acls.py    8 Apr 2008 15:47:27 -0000       1.28
+++ rdiff_backup/eas_acls.py    24 Apr 2008 17:08:32 -0000      1.29
@@ -61,7 +61,7 @@
                        if exc[0] == errno.EOPNOTSUPP or exc[0] == errno.EPERM:
                                return # if not supported, consider empty
                        if exc[0] == errno.EACCES:
-                               log.Log("Warning: listattr(%s): %s" % (rp.path, 
exc), 3)
+                               log.Log("Warning: listattr(%s): %s" % 
(repr(rp.path), exc), 3)
                                return
                        raise
                for attr in attr_list:
@@ -90,7 +90,7 @@
                                        # to bail out or be too noisy at low 
log levels.
                                        if exc[0] == errno.EACCES:
                                                log.Log("Warning: unable to 
remove xattr %s from %s"
-                                                       % (name, rp.path), 7)
+                                                       % (name, 
repr(rp.path)), 7)
                                                continue
                                        else: raise
                except IOError, exc:
@@ -109,7 +109,7 @@
                                # fail gracefully if can't call setxattr
                                if exc[0] == errno.EOPNOTSUPP or exc[0] == 
errno.EACCES:
                                        log.Log("Warning: unable to write xattr 
%s to %s"
-                                                       % (name, rp.path), 6)
+                                                       % (name, 
repr(rp.path)), 6)
                                        continue
                                else: raise
 




reply via email to

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