Skip to content

Commit

Permalink
t5004: ignore pax global header file
Browse files Browse the repository at this point in the history
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 <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
René Scharfe authored and Junio C Hamano committed May 9, 2013
1 parent e2161bc commit abdb9b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t5004-archive-corner-cases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ check_dir() {
echo "$dir/$i"
done
} | sort >expect &&
find "$dir" -print | sort >actual &&
find "$dir" ! -name pax_global_header -print | sort >actual &&
test_cmp expect actual
}

Expand Down

0 comments on commit abdb9b2

Please sign in to comment.