Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 663e27c

Browse files
committed
Fix pg_upgrade's pg_scandir_internal() the right way. Backpatch to 9.1.
1 parent 379aa2f commit 663e27c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ pg_scandir_internal(const char *dirname,
294294
while ((direntry = readdir(dirdesc)) != NULL)
295295
{
296296
/* Invoke the selector function to see if the direntry matches */
297-
if (selector && (*selector) (direntry))
297+
if (!selector || (*selector) (direntry))
298298
{
299299
count++;
300300

0 commit comments

Comments
 (0)