From dc22b34f86a29d393c6407861a6865e88736c22c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 25 Jun 2013 23:50:14 -0400 Subject: [PATCH] pg_receivexlog: Fix logic error The code checking the WAL file name contained a logic error and wouldn't actually catch some bad names. --- src/bin/pg_basebackup/pg_receivexlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_basebackup/pg_receivexlog.c b/src/bin/pg_basebackup/pg_receivexlog.c index 1850787784..787a3951bd 100644 --- a/src/bin/pg_basebackup/pg_receivexlog.c +++ b/src/bin/pg_basebackup/pg_receivexlog.c @@ -145,7 +145,7 @@ FindStreamingStart(uint32 *tli) * characters. */ if (strlen(dirent->d_name) != 24 || - !strspn(dirent->d_name, "0123456789ABCDEF") == 24) + strspn(dirent->d_name, "0123456789ABCDEF") != 24) continue; /* -- 2.40.0