8000 Check that we have a working tar before trying to use it · f0rk/postgres@f920f7e · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f920f7e

Browse files
committed
Check that we have a working tar before trying to use it
Issue exposed by commit edc2332 and the buildfarm. Backpatch to release 14 where this usage started.
1 parent 815d61f commit f920f7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@
268268
{
269269
my $tar = $ENV{TAR};
270270
skip "no tar program available", 1
271-
if (!defined $tar || $tar eq '');
271+
if (!defined $tar || $tar eq ''
272+
|| system_log($tar, '--version') != 0);
272273

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

0 commit comments

Comments
 (0)
0