diff options
| author | Peter Eisentraut | 2013-06-26 03:50:14 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2013-06-26 04:02:01 +0000 |
| commit | dc22b34f86a29d393c6407861a6865e88736c22c (patch) | |
| tree | 9f93e539cd2d5f85af4a419f8a122b30806697e8 | |
| parent | cb687c751c8d2e9eb097339f8920ca8fcf29fc47 (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.
| -rw-r--r-- | src/bin/pg_basebackup/pg_receivexlog.c | 2 |
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; /* |
