summaryrefslogtreecommitdiff
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
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
-rw-r--r--rdiff-backup/CHANGELOG8
-rw-r--r--rdiff-backup/TODO7
-rw-r--r--rdiff-backup/rdiff_backup/rpath.py5
-rw-r--r--rdiff-backup/src/rpath.py5
4 files changed, 22 insertions, 3 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 58774a4..9d77055 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -1,3 +1,11 @@
+New in v0.11.0 (2002/09/30)
+---------------------------
+
+If get a socket error from trying to create a socket whose name is too
+long, just skip file instead of exiting with error (bug report by Ivo
+De Decker).
+
+
New in v0.10.1 (2002/09/16)
---------------------------
diff --git a/rdiff-backup/TODO b/rdiff-backup/TODO
index 72e6fd6..c44741c 100644
--- a/rdiff-backup/TODO
+++ b/rdiff-backup/TODO
@@ -1,4 +1,9 @@
-Update FAQ on cstream
+add --exclude-special-files to exclude fifos, symlinks, sockets, and
+device files.
+
+Change Windows mode to quote A-Z also. (--windows-mode could be short
+for "--exclude-special-files --chars-to-quote A-Z: --quoting-char ;
+--windows-time-format").
Write some better selection test cases to test new Iterate_fast func.
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py
index 14a68c7..f091ff4 100644
--- a/rdiff-backup/rdiff_backup/rpath.py
+++ b/rdiff-backup/rdiff_backup/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()"""
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()"""