mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user