Commit b2e75777 authored by bescoto's avatar bescoto

NFS friendly fix by Perdaens


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@528 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent d9147b84
......@@ -9,7 +9,13 @@ Kaltenecker for bug report.
Fixed error when --restrict path given with trailing backslash. Bug
report by Åke Brännström.
Backported regress fix from 0.13.x. But noticed by Alan Horn.
Backported regress fix from 0.13.x. Bug noticed by Alan Horn.
Added error-correcting fsync suggestion by Antoine Perdaens.
rdiff-backup may work better with NFS now.
Fix for regress warning code: rdiff-backup should warn you if you are
trying to back up a directory into itself.
New in v0.12.6 (2003/11/02)
......
......@@ -724,7 +724,9 @@ class RPath(RORPath):
log.Log("Deleting %s" % self.path, 7)
if self.isdir():
try: self.rmdir()
except os.error: shutil.rmtree(self.path)
except os.error:
if Globals.fsync_directories: self.fsync()
self.conn.shutil.rmtree(self.path)
else: self.conn.os.unlink(self.path)
self.setdata()
......
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