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
76e7e2e7
Commit
76e7e2e7
authored
Jul 12, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use strdup in pg_ctl for canonicalize_path on environment variable.
Simplify postmaster call too.
parent
a0db74a3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+2
-5
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/pg_ctl.c
+2
-5
No files found.
src/backend/postmaster/postmaster.c
View file @
76e7e2e7
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.4
09 2004/07/11 23:49:45
momjian Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.4
10 2004/07/12 18:17:13
momjian Exp $
*
*
* NOTES
* NOTES
*
*
...
@@ -526,10 +526,7 @@ PostmasterMain(int argc, char *argv[])
...
@@ -526,10 +526,7 @@ PostmasterMain(int argc, char *argv[])
}
}
if
(
userPGDATA
)
if
(
userPGDATA
)
{
canonicalize_path
(
userPGDATA
=
strdup
(
userPGDATA
));
userPGDATA
=
strdup
(
userPGDATA
);
canonicalize_path
(
userPGDATA
);
}
if
(
onlyConfigSpecified
(
userPGDATA
))
if
(
onlyConfigSpecified
(
userPGDATA
))
{
{
...
...
src/bin/pg_ctl/pg_ctl.c
View file @
76e7e2e7
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.1
8 2004/06/25 08:49:28 dennis
Exp $
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.1
9 2004/07/12 18:17:13 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1308,10 +1308,7 @@ main(int argc, char **argv)
...
@@ -1308,10 +1308,7 @@ main(int argc, char **argv)
/* Note we put any -D switch into the env var above */
/* Note we put any -D switch into the env var above */
pg_data
=
getenv
(
"PGDATA"
);
pg_data
=
getenv
(
"PGDATA"
);
if
(
pg_data
)
if
(
pg_data
)
{
canonicalize_path
(
pg_data
=
xstrdup
(
pg_data
));
/* XXX modifies environment var in-place ... ugly ... */
canonicalize_path
(
pg_data
);
}
if
(
pg_data
==
NULL
&&
if
(
pg_data
==
NULL
&&
ctl_command
!=
KILL_COMMAND
&&
ctl_command
!=
UNREGISTER_COMMAND
)
ctl_command
!=
KILL_COMMAND
&&
ctl_command
!=
UNREGISTER_COMMAND
)
...
...
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