Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit087a271

Browse files
author
Neil Conway
committed
Tweak for initdb: if more command-line arguments were specified than
expected, exit with an error, rather than complaining about the erroron stderr but continuing onward.
1 parent4fd8d6b commit087a271

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/bin/initdb/initdb.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* Portions Copyright (c) 1994, Regents of the University of California
4343
* Portions taken from FreeBSD.
4444
*
45-
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.138 2007/07/11 23:15:38 tgl Exp $
45+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.139 2007/08/04 21:01:09 neilc Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -2583,6 +2583,7 @@ main(int argc, char *argv[])
25832583
progname,argv[optind+1]);
25842584
fprintf(stderr,_("Try \"%s --help\" for more information.\n"),
25852585
progname);
2586+
exit(1);
25862587
}
25872588

25882589
if (pwprompt&&pwfilename)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp