Skip to content

Commit 745b99c

Browse files
committed
Revert "Check that we have a working tar before trying to use it"
This reverts commit f920f7e. The patch in effect fixed a problem we didn't have and caused another instead. Backpatch to release 14 like original Discussion: https://postgr.es/m/3655283.1638977975@sss.pgh.pa.us
1 parent f920f7e commit 745b99c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bin/pg_basebackup/t/010_pg_basebackup.pl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,11 @@
267267
SKIP:
268268
{
269269
my $tar = $ENV{TAR};
270+
# don't check for a working tar here, to accomodate various odd
271+
# cases such as AIX. If tar doesn't work the init_from_backup below
272+
# will fail.
270273
skip "no tar program available", 1
271-
if (!defined $tar || $tar eq ''
272-
|| system_log($tar, '--version') != 0);
274+
if (!defined $tar || $tar eq '');
273275

274276
my $node2 = PostgreSQL::Test::Cluster->new('replica');
275277

0 commit comments

Comments
 (0)