--- rpath.py 2009-03-16 10:36:21.000000000 -0400 +++ ../rpath.py 2009-06-15 19:09:36.000000000 -0400 @@ -353,10 +353,14 @@ """ assert rpath.conn is Globals.local_connection - s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) - try: s.bind(rpath.path) - except socket.error, exc: - raise SkipFileException("Socket error: " + str(exc)) + try: rpath.conn.os.mknod(rpath.path, stat.S_IFSOCK) + except (OSError, AttributeError): + # AttributeError will be raised by Python 2.2, which + # doesn't have os.mknod + s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) + 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"""