mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-07 12:20:31 +01:00
Fix pg_upgrade's pg_scandir_internal() the right way. Backpatch to 9.1.
This commit is contained in:
parent
379aa2f5a4
commit
663e27c405
|
|
@ -294,7 +294,7 @@ pg_scandir_internal(const char *dirname,
|
|||
while ((direntry = readdir(dirdesc)) != NULL)
|
||||
{
|
||||
/* Invoke the selector function to see if the direntry matches */
|
||||
if (selector && (*selector) (direntry))
|
||||
if (!selector || (*selector) (direntry))
|
||||
{
|
||||
count++;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user