Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
1f359446
Commit
1f359446
authored
May 18, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In pg_upgrade, clean up handling of invalid directory specification by
checking the stat() errno value more strictly.
parent
772a5f1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
contrib/pg_upgrade/exec.c
contrib/pg_upgrade/exec.c
+3
-3
No files found.
contrib/pg_upgrade/exec.c
View file @
1f359446
...
...
@@ -70,9 +70,9 @@ is_server_running(const char *datadir)
if
((
fd
=
open
(
path
,
O_RDONLY
,
0
))
<
0
)
{
if
(
errno
!=
ENOENT
)
/* issue a warning but continue so we can throw a clearer error later */
pg_log
(
PG_
WARNING
,
"could not open file
\"
%s
\"
for reading
\n
"
,
/* ENOTDIR means we will throw a more useful error later */
if
(
errno
!=
ENOENT
&&
errno
!=
ENOTDIR
)
pg_log
(
PG_
FATAL
,
"could not open file
\"
%s
\"
for reading
\n
"
,
path
);
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment