git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
412cefc
)
selftest: fix tar test with Pax format archives
author
Björn Jacke
<bj@sernet.de>
Thu, 3 Dec 2015 09:23:09 +0000
(10:23 +0100)
committer
Bjoern Jacke
<bj@sernet.de>
Thu, 3 Dec 2015 12:03:25 +0000
(13:03 +0100)
we need to skip PaxHeader pseudo files
Signed-off-by: Bjoern Jacke <bj@sernet.de>
source3/script/tests/test_smbclient_tarmode.pl
patch
|
blob
|
history
diff --git
a/source3/script/tests/test_smbclient_tarmode.pl
b/source3/script/tests/test_smbclient_tarmode.pl
index 663f02f8a08fc37e0983cf6e767ed0dc7f939ee8..29cea992ea0bf34c3fc59f2cc9b75ad53a2b2746 100755
(executable)
--- a/
source3/script/tests/test_smbclient_tarmode.pl
+++ b/
source3/script/tests/test_smbclient_tarmode.pl
@@
-1063,8
+1063,12
@@
sub check_tar {
my $i = Archive::Tar->iter($tar, 1, {md5 => 1});
while (my $f = $i->()) {
if ($f->has_content) {
- $total++;
my $p = $f->full_path;
+
+ # we skip pseudo files of Pax format archives
+ next if ($p =~ m/\/PaxHeader/);
+
+ $total++;
$p =~ s{^\./+}{};
# file that shouldn't be there