We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b8b69 commit 08b0e60Copy full SHA for 08b0e60
src/bin/initdb/initdb.c
@@ -43,7 +43,7 @@
43
* Portions Copyright (c) 1994, Regents of the University of California
44
* Portions taken from FreeBSD.
45
*
46
- * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.20 2004/01/31 21:18:00 neilc Exp $
+ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.21 2004/01/31 22:10:00 neilc Exp $
47
48
*-------------------------------------------------------------------------
49
*/
@@ -553,7 +553,7 @@ mkdir_p(char *path, mode_t omode)
553
else if (p[0] != '/')
554
continue;
555
*p = '\0';
556
- if (p[1] == '\0')
+ if (!last && p[1] == '\0')
557
last = 1;
558
if (first)
559
{
0 commit comments