]> arthur.barton.de Git - bup.git/commit
Fix path ownership restoration problems on Cygwin.
authorRob Browning <rlb@defaultvalue.org>
Sat, 14 Sep 2013 18:47:23 +0000 (13:47 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 16 Sep 2013 21:49:56 +0000 (16:49 -0500)
commitb836113e503ab3f8e3c30c3283eb59f936fb0023
tree74d3652e354fb2ffec6006c56e27e3af551f55e7
parenta373ac2333c6d0f4253136598ac0b3aeb5adac4e
Fix path ownership restoration problems on Cygwin.

It turns out that Cygwin won't allow you to chown() a path to an
unknown uid or gid, even when "root".

For now, make that a deferred error on Cygwin, rework the tests to
avoid it when possible, and disable the tests (on Cygwin) that require
it.

For the record, it appears that tar doesn't normally hit this problem
on Cygwin because it uses "geteuid() == 0" to detect super-user
status, which won't be true in the normal case, even if the user is an
administrator.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Documentation/bup-restore.md
lib/bup/metadata.py
t/id-other-than [new file with mode: 0755]
t/some-owner [deleted file]
t/test-meta.sh