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

Commit885a4d3

Browse files
committed
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 anerror message. Besides, getopt_long itself already did, so it's redundantanyway.
1 parente970b2a commit885a4d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/pg_ctl/pg_ctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.69 2006/06/18 15:38:37 petere Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.70 2006/06/25 04:37:55 alvherre Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -1608,7 +1608,7 @@ main(int argc, char **argv)
16081608
wait_set= true;
16091609
break;
16101610
default:
1611-
write_stderr(_("%s: invalid option %s\n"),progname,optarg);
1611+
/* getopt_long already issued a suitable error message */
16121612
do_advice();
16131613
exit(1);
16141614
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp