Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit663e27c

Browse files
committed
Fix pg_upgrade's pg_scandir_internal() the right way. Backpatch to 9.1.
1 parent379aa2f commit663e27c

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)

[8]ページ先頭

©2009-2025 Movatter.jp