diff options
author | Neil Conway <neilc@samurai.com> | 2007-08-04 21:01:09 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2007-08-04 21:01:09 +0000 |
commit | 087a271327ae374ab13099b094fb35e6a57b48e9 (patch) | |
tree | 0f3790f1b8d459b1b1a4d37186cc3723e66c1fb8 /src | |
parent | 4fd8d6b3e77eb00cfd7bb8d3d130b147ba0d60f3 (diff) | |
download | postgresql-087a271327ae374ab13099b094fb35e6a57b48e9.tar.gz postgresql-087a271327ae374ab13099b094fb35e6a57b48e9.zip |
Tweak for initdb: if more command-line arguments were specified than
expected, exit with an error, rather than complaining about the error
on stderr but continuing onward.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/initdb/initdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 5f3294630e4..4560e77a636 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -42,7 +42,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * Portions taken from FreeBSD. * - * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.138 2007/07/11 23:15:38 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.139 2007/08/04 21:01:09 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -2583,6 +2583,7 @@ main(int argc, char *argv[]) progname, argv[optind + 1]); fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname); + exit(1); } if (pwprompt && pwfilename) |