*** initdb.c.orig	Tue Jul 13 22:14:04 2004
--- initdb.c	Tue Jul 13 22:02:30 2004
***************
*** 919,924 ****
--- 919,933 ----
  							  "host    all         all         ::1",
  							  "#host    all         all         ::1");
  #endif
+ 	
+ 	/* If password specified, edit the default authentication */
+ 	if (pwprompt || pwfilename) 
+ 	{
+ 		conflines = replace_token(conflines,
+ 								  " trust",
+ 								  " md5");
+ 	}
+ 								 
  
  	snprintf(path, sizeof(path), "%s/pg_hba.conf", pg_data);
  
