Commit 4a6db780 authored by owsla's avatar owsla

Recover from EBADF during fsync(). Closes Savannah bug #15839


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@868 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent f179ac3b
New in v1.1.16 (????/??/??)
---------------------------
Add EBADF to the list of recoverable errors when fsync() is called. This
fixes an rdiff-backup error on AIX and IRIX. Closes Savannah bug #15839.
(Fix from Peter O'Gorman)
Properly initialize new QuotedRPaths. Fixes --list-at-time, etc. when
the target is remote. (Andrew Ferguson)
......
......@@ -1181,7 +1181,7 @@ class RPath(RORPath):
os.close(fd)
except OSError, e:
if locals().has_key('fd'): os.close(fd)
if (e.errno != errno.EPERM and e.errno != errno.EACCES) \
if (e.errno not in (errno.EPERM, errno.EACCES, errno.EBADF)) \
or self.isdir(): raise
# Maybe the system doesn't like read-only fsyncing.
......
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