mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Make --version option print fixed program name.
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.64 2006/01/14 15:41:28 petere Exp $
|
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.65 2006/02/07 11:36:36 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1313,7 +1313,7 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
else if (strcmp(argv[1], "-V") == 0 || strcmp(argv[1], "--version") == 0)
|
else if (strcmp(argv[1], "-V") == 0 || strcmp(argv[1], "--version") == 0)
|
||||||
{
|
{
|
||||||
printf("%s (PostgreSQL) %s\n", progname, PG_VERSION);
|
puts("pg_ctl (PostgreSQL) " PG_VERSION);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user