diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-14 15:11:22 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-14 15:11:22 +0100 |
commit | 87f84d4305716e73f43d0e0577b8295fdff2a64d (patch) | |
tree | 56b45a04cbb2cdabb2d18dde911ee21f27683b4a /tests | |
parent | e330f278e2aa8fd1585c35c8f139bccb74f62d40 (diff) | |
download | tbdiff-87f84d4305716e73f43d0e0577b8295fdff2a64d.tar.gz |
Fixed files losing group metadata
Actually it was losing all metadata other than that which changed
metadata was lost when the file was removed, but only the data
that changed was applied
the fix is to ignore the metadata diff mask as all the data is
written to the binary diff, however it needn't be, so if it gets
fixed to only send what changed, the metadata will have to be
read before the file is recreated and the metadata changed based
on what was sent in the binary diff
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/00_regular_file_diff.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/00_regular_file_diff.sh b/tests/00_regular_file_diff.sh index 3bd3310..613d924 100755 --- a/tests/00_regular_file_diff.sh +++ b/tests/00_regular_file_diff.sh @@ -15,6 +15,9 @@ ORG_FILE=$ORIGIN/b.txt TGT_FILE=$TARGET/b.txt setup () { + echo 1 >$ORIGIN/a.txt && + echo 2 >$TARGET/a.txt && + chgrp tty $ORIGIN/a.txt $TARGET/a.txt && echo 1 > $ORG_FILE && \ echo 2 > $TGT_FILE && \ chown :cdrom $TGT_FILE && \ @@ -22,6 +25,7 @@ setup () { } check_results () { + check_group $ORIGIN/a.txt tty && check_content $ORG_FILE "2" && \ check_perm $ORG_FILE 707 && \ check_group $ORG_FILE cdrom && \ |