summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut2013-06-26 03:50:14 +0000
committerPeter Eisentraut2013-06-26 04:01:00 +0000
commit2c1031bd8602f749a81672015811f365a129acff (patch)
treee1feca0c304e4cfd1748d61798af43463cdf4b73 /src
parent4ca50e071024421e3b75bf7e48fda08141360636 (diff)
pg_receivexlog: Fix logic error
The code checking the WAL file name contained a logic error and wouldn't actually catch some bad names.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_basebackup/pg_receivexlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/pg_receivexlog.c b/src/bin/pg_basebackup/pg_receivexlog.c
index 18507877845..787a3951bda 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;
/*