Commit 21cb5cb7 authored by owsla's avatar owsla

Cygwin generates OSError when changing permissions on partitions.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@789 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 0ed03fc0
New in v1.1.9 (????/??/??)
--------------------------
Cygwin generates OSError when changing permissions on partitions.
(Patch from Andrew Ferguson.)
Fix fs_abilities.py patch error with set_escape_dos_devices.
(Marc Dyksterhouse)
......
......@@ -381,7 +381,10 @@ def backup_set_rbdir(rpin, rpout):
assert rpout.lstat(), (rpout.path, rpout.lstat())
if rpout.isdir() and not rpout.listdir(): # rpout is empty dir
rpout.chmod(0700) # just make sure permissions aren't too lax
try:
rpout.chmod(0700) # just make sure permissions aren't too lax
except OSError:
log.Log("Cannot change permissions on target directory.", 2)
elif not Globals.rbdir.lstat() and not force: Log.FatalError(
"""Destination 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