Fix pg_upgrade's pg_scandir_internal() the right way. Backpatch to 9.1.

This commit is contained in:
Bruce Momjian 2011-11-17 13:40:44 -05:00
parent 988f907d24
commit ee3ef8f30c
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ pg_scandir_internal(const char *dirname,
while ((direntry = readdir(dirdesc)) != NULL) while ((direntry = readdir(dirdesc)) != NULL)
{ {
/* Invoke the selector function to see if the direntry matches */ /* Invoke the selector function to see if the direntry matches */
if (selector && (*selector) (direntry)) if (!selector || (*selector) (direntry))
{ {
count++; count++;