Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy