Skip to content

Commit abdb9b2

Browse files
René Scharfegitster
authored andcommitted
t5004: ignore pax global header file
Versions of tar that don't know pax headers -- like the ones in NetBSD 6 and OpenBSD 5.2 -- extract them as regular files. Explicitly ignore the file created for our global header when checking the list of extracted files, as this is normal and harmless fall-back behaviour. This fixes test 3 of t5004 on these platforms. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e2161bc commit abdb9b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5004-archive-corner-cases.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ check_dir() {
2323
echo "$dir/$i"
2424
done
2525
} | sort >expect &&
26-
find "$dir" -print | sort >actual &&
26+
find "$dir" ! -name pax_global_header -print | sort >actual &&
2727
test_cmp expect actual
2828
}
2929

0 commit comments

Comments
 (0)