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

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

Re: [rdiff-backup-users] Exception 'AF_UNIX path too long'


From: Ben Escoto
Subject: Re: [rdiff-backup-users] Exception 'AF_UNIX path too long'
Date: Thu, 03 Oct 2002 14:52:44 -0700

>>>>> "MS" == Michael Stenner <address@hidden>
>>>>> wrote the following on Thu, 3 Oct 2002 13:35:08 -0400

  MS> For the last few days, I've been getting this error when doing
  MS> backups.  It does correspond (at least approximately) with the
  MS> creation of the problematic files.

  MS>   Exception 'AF_UNIX path too long' raised of class
  MS> 'socket.error'

Yes, someone else reported this error but it was when the mailing list
was down.  Try the attached patch.

--- rpath.py~   Thu Sep  5 01:12:38 2002
+++ rpath.py    Sun Sep 22 09:58:06 2002
@@ -209,7 +209,9 @@
                """
                assert rpath.conn is Globals.local_connection
                s = socket.socket(socket.AF_UNIX)
-               s.bind(rpath.path)
+               try: s.bind(rpath.path)
+               except socket.error, exc:
+                       raise SkipFileException("Socket error: " + str(exc))
 
        def gzip_open_local_read(rpath):
                """Return open GzipFile.  See security note directly above"""
@@ -838,6 +840,7 @@
 from lazy import *
 from selection import *
 from destructive_stepping import *
+from highlevel import *
 
 class RpathDeleter(ITRBranch):
        """Delete a directory.  Called by RPath.delete()"""

Attachment: pgpqE_NwSwKCw.pgp
Description: PGP signature


reply via email to

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