]> arthur.barton.de Git - bup.git/commitdiff
Accommodate systems where paths inherit their group from the parent dir.
authorRob Browning <rlb@defaultvalue.org>
Mon, 11 Nov 2013 18:03:25 +0000 (12:03 -0600)
committerRob Browning <rlb@defaultvalue.org>
Mon, 11 Nov 2013 18:04:37 +0000 (12:04 -0600)
Thanks to Thomas Klausner <tk@giga.or.at> for reporting the problem
and helping test the solution.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
t/test-restore-map-owner.sh

index 6ebfdc550d7243396c22b9f0b3209adc8cd5594b..05c3d41eb24693f7545e70d242d1e1a99651cbb7 100755 (executable)
@@ -31,6 +31,8 @@ WVPASS cd "$tmpdir"
 WVSTART "restore --map-user/group/uid/gid (control)"
 WVPASS mkdir src
 WVPASS touch src/foo
+# Some systems assign the parent dir group to new paths.
+WVPASS chgrp -R "$group" src
 WVPASS bup index src
 WVPASS bup save -n src src
 WVPASS bup restore -C dest "src/latest/$(pwd)/src/"