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
26adbc7b
Commit
26adbc7b
authored
Nov 08, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up compiler warnings.
parent
3908473c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/backend/commands/dbcommands.c
src/backend/commands/dbcommands.c
+4
-5
No files found.
src/backend/commands/dbcommands.c
View file @
26adbc7b
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.6
4 2000/11/08 16:59:49 petere
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.6
5 2000/11/08 23:24:24 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -387,7 +387,7 @@ get_user_info(Oid use_sysid, bool *use_super, bool *use_createdb)
...
@@ -387,7 +387,7 @@ get_user_info(Oid use_sysid, bool *use_super, bool *use_createdb)
static
char
*
static
char
*
resolve_alt_dbpath
(
const
char
*
dbpath
,
Oid
dboid
)
resolve_alt_dbpath
(
const
char
*
dbpath
,
Oid
dboid
)
{
{
char
*
prefix
;
c
onst
c
har
*
prefix
;
char
*
ret
;
char
*
ret
;
size_t
len
;
size_t
len
;
...
@@ -396,11 +396,10 @@ resolve_alt_dbpath(const char * dbpath, Oid dboid)
...
@@ -396,11 +396,10 @@ resolve_alt_dbpath(const char * dbpath, Oid dboid)
if
(
strchr
(
dbpath
,
'/'
))
if
(
strchr
(
dbpath
,
'/'
))
{
{
#ifdef ALLOW_ABSOLUTE_DBPATHS
#ifndef ALLOW_ABSOLUTE_DBPATHS
prefix
=
dbpath
;
#else
elog
(
ERROR
,
"Absolute paths are not allowed as database locations"
);
elog
(
ERROR
,
"Absolute paths are not allowed as database locations"
);
#endif
#endif
prefix
=
dbpath
;
}
}
else
else
{
{
...
...
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