1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

pg_receivexlog: Fix logic error

The code checking the WAL file name contained a logic error and wouldn't
actually catch some bad names.
This commit is contained in:
Peter Eisentraut 2013-06-25 23:50:14 -04:00
parent cb687c751c
commit dc22b34f86

View File

@ -145,7 +145,7 @@ FindStreamingStart(uint32 *tli)
* characters. * characters.
*/ */
if (strlen(dirent->d_name) != 24 || if (strlen(dirent->d_name) != 24 ||
!strspn(dirent->d_name, "0123456789ABCDEF") == 24) strspn(dirent->d_name, "0123456789ABCDEF") != 24)
continue; continue;
/* /*