Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 250e516

Browse files
committed
Cause initdb to actually accept -s as intended, and fix some typos in
a comment. Jon Jensen
1 parent 3de91c1 commit 250e516

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bin/initdb/initdb.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* Portions Copyright (c) 1994, Regents of the University of California
4040
* Portions taken from FreeBSD.
4141
*
42-
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.48 2004/08/11 11:06:23 petere Exp $
42+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.49 2004/08/11 23:28:54 tgl Exp $
4343
*
4444
*-------------------------------------------------------------------------
4545
*/
@@ -2049,7 +2049,7 @@ main(int argc, char *argv[])
20492049

20502050
/* process command-line options */
20512051

2052-
while ((c = getopt_long(argc, argv, "dD:E:L:nU:WA:", long_options, &option_index)) != -1)
2052+
while ((c = getopt_long(argc, argv, "dD:E:L:nU:WA:s", long_options, &option_index)) != -1)
20532053
{
20542054
switch (c)
20552055
{
@@ -2198,8 +2198,8 @@ main(int argc, char *argv[])
21982198

21992199
/*
22002200
* we have to set PGDATA for postgres rather than pass it on the
2201-
* commnd line to avoid dumb quoting problems on Windows, and we would
2202-
* expecially need quotes otherwise on Windows because paths there are
2201+
* command line to avoid dumb quoting problems on Windows, and we would
2202+
* especially need quotes otherwise on Windows because paths there are
22032203
* most likely to have embedded spaces.
22042204
*/
22052205
pgdenv = xmalloc(8 + strlen(pg_data));

0 commit comments

Comments
 (0)