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

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

Re: [rdiff-backup-users] Problem after upgrading to 0.12.0


From: Ben Escoto
Subject: Re: [rdiff-backup-users] Problem after upgrading to 0.12.0
Date: Tue, 01 Jul 2003 12:48:48 -0700

>>>>> "TA" == Troels Arvin <address@hidden>
>>>>> wrote the following on 01 Jul 2003 20:13:09 +0200

  TA> On Tue, 2003-07-01 at 19:34, Ben Escoto wrote:
  >> For instance, does this work in your rdiff-backup-data directory:
  TA> foo: Inappropriate file type or format

Ok, try this patch:

--- increment.py.old    2003-07-01 12:40:27.000000000 -0700
+++ increment.py        2003-07-01 12:45:58.000000000 -0700
@@ -19,6 +19,7 @@
 
 """Provides functions and *ITR classes, for writing increment files"""
 
+import errno
 import Globals, Time, rpath, Rdiff, log, statistics, robust
 
 
@@ -87,7 +88,10 @@
        """Make file indicating directory mirrordir has changed"""
        dirsign = get_inc(incpref, "dir")
        dirsign.touch()
-       rpath.copy_attribs(mirrordir, dirsign)
+       try: rpath.copy_attribs(mirrordir, dirsign)
+       except IOError, exc:
+               if exc[0] == errno.ELIBACC: pass # reg files cannot support 
full perms
+               else: raise
        return dirsign
 
 def get_inc(rp, typestr, time = None):


But first make sure that error number 79 is ELIBACC on your system.
One way to do this is like this:

~ $ python
Python 2.2.1 (#1, Aug 30 2002, 12:15:30) 
[GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import errno
>>> errno.errorcode[79]
'ELIBACC'
>>> 

if it is something different, replace ELIBACC in the patch above with
the right value, and tell me what the correct code was.


-- 
Ben Escoto

Attachment: pgpCawv9Bjj1r.pgp
Description: PGP signature


reply via email to

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