diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2006-06-25 04:38:00 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2006-06-25 04:38:00 +0000 |
commit | 15af8b771b64d700e6449e73fdec824ab09fbc49 (patch) | |
tree | 26a78e87505e96b4c81d430aa4d59ed9c7dffffc | |
parent | 1c718dd8bffe9dcdf38b5a10991f4e1067e4821d (diff) |
Our version of getopt_long does not set optarg upon detecting an error, as
opposed to what other versions apparently do, so it's not safe to print an
error message. Besides, getopt_long itself already did, so it's redundant
anyway.
-rw-r--r-- | src/bin/pg_ctl/pg_ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index 7e5c3f59065..fc5061e044a 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -4,7 +4,7 @@ * * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.61.2.2 2006/01/14 16:16:08 petere Exp $ + * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.61.2.3 2006/06/25 04:38:00 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -1418,7 +1418,7 @@ main(int argc, char **argv) wait_set = true; break; default: - write_stderr(_("%s: invalid option %s\n"), progname, optarg); + /* getopt_long already issued a suitable error message */ do_advice(); exit(1); } |