pg_receivexlog: Fix logic error

The code checking the WAL file name contained a logic error and wouldn't
actually catch some bad names.
pull/6/head
Peter Eisentraut 13 years ago
parent 4ca50e0710
commit 2c1031bd86
  1. 2
      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;
/*

Loading…
Cancel
Save