Commit 6779e148 authored by ben's avatar ben

Fixed socket too long bug


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@210 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent c453b1f5
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)
---------------------------
......
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.
......
......@@ -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()"""
......
......@@ -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()"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment