Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
2712ca77
Commit
2712ca77
authored
21 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Fix initdb use of mkdir_p().
Andrew Dunstan
parent
15b5d6cf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bin/initdb/initdb.c
+2
-9
2 additions, 9 deletions
src/bin/initdb/initdb.c
with
2 additions
and
9 deletions
src/bin/initdb/initdb.c
+
2
−
9
View file @
2712ca77
...
...
@@ -43,7 +43,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.1
5
2003/1
1/29 19:52:04 pgsql
Exp $
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.1
6
2003/1
2/01 23:15:47 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -801,7 +801,6 @@ static bool
mkdatadir
(
char
*
subdir
)
{
char
*
path
;
int
res
;
path
=
xmalloc
(
strlen
(
pg_data
)
+
2
+
(
subdir
==
NULL
?
0
:
strlen
(
subdir
)));
...
...
@@ -811,13 +810,7 @@ mkdatadir(char *subdir)
else
strcpy
(
path
,
pg_data
);
res
=
mkdir
(
path
,
0700
);
if
(
res
==
0
)
return
true
;
else
if
(
subdir
==
NULL
||
errno
!=
ENOENT
)
return
false
;
else
return
!
mkdir_p
(
path
,
0700
);
return
(
mkdir_p
(
path
,
0700
)
==
0
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment