summaryrefslogtreecommitdiff
path: root/rdiff-backup/src/rpath.py
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-09-22 17:17:41 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-09-22 17:17:41 +0000
commitfa50cc19153c3ff87828c9a5ad9e83257c0b3737 (patch)
treeb2c828294018a4d2cd723b9ae5addbc05aee2b54 /rdiff-backup/src/rpath.py
parent727ed4ecc5a9ebc4db1c3e550f9a989d29637fb3 (diff)
downloadrdiff-backup-fa50cc19153c3ff87828c9a5ad9e83257c0b3737.tar.gz
Fixed socket too long bug
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@210 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/src/rpath.py')
-rw-r--r--rdiff-backup/src/rpath.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/rdiff-backup/src/rpath.py b/rdiff-backup/src/rpath.py
index 14a68c7..f091ff4 100644
--- a/rdiff-backup/src/rpath.py
+++ b/rdiff-backup/src/rpath.py
@@ -209,7 +209,9 @@ class RPathStatic:
"""
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 @@ import FilenameMapping
from lazy import *
from selection import *
from destructive_stepping import *
+from highlevel import *
class RpathDeleter(ITRBranch):
"""Delete a directory. Called by RPath.delete()"""