Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
379aa2f
)
Fix pg_upgrade's pg_scandir_internal() the right way. Backpatch to 9.1.
author
Bruce Momjian
<bruce@momjian.us>
Thu, 17 Nov 2011 18:40:45 +0000
(13:40 -0500)
committer
Bruce Momjian
<bruce@momjian.us>
Thu, 17 Nov 2011 18:40:45 +0000
(13:40 -0500)
contrib/pg_upgrade/file.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_upgrade/file.c
b/contrib/pg_upgrade/file.c
index 4983e7f5ad9562f62db5e23a8cb8087539c9b6ab..8fdc86d7d471d7fc822ba0e402bc0dcc7c70988b 100644
(file)
--- a/
contrib/pg_upgrade/file.c
+++ b/
contrib/pg_upgrade/file.c
@@
-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++;