Commit ee3ef8f3 authored by Bruce Momjian's avatar Bruce Momjian

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

parent 988f907d
......@@ -296,7 +296,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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment