Commit a158d626 authored by owsla's avatar owsla

Regress.restore_orig_regfile should check Globals.fsync_directories Fixes

bug #21546


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@853 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent f55c7115
New in v1.1.15 (????/??/??)
---------------------------
Regress.restore_orig_regfile should check if directories can be fsync'd
before doing so. Fixes Savannah bug #21546. (Patch from Marc Horowitz)
Rewrite quoting logic to independently check for escaping Windows special
characters, non-ASCII chars, and uppercase chars. (Andrew Ferguson)
......
......@@ -294,7 +294,8 @@ class RegressITRB(rorpiter.ITRBranch):
if rf.mirror_rp.lstat(): rf.mirror_rp.delete()
rf.mirror_rp.write_from_fileobj(rf.get_restore_fp())
rpath.copy_attribs(rf.metadata_rorp, rf.mirror_rp)
rf.mirror_rp.get_parent_rp().fsync() # require move before inc delete
if Globals.fsync_directories:
rf.mirror_rp.get_parent_rp().fsync() # force move before inc delete
def start_process(self, index, rf):
"""Start processing directory"""
......
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