Re: patch for pgsql password

Started by Bruce Momjianalmost 27 years ago1 messageshackers
Jump to latest
#1Bruce Momjian
bruce@momjian.us

Can you send me that patch? Thanks.

I have applied the following patch to fix one of our Open Items, by
James Thompson:

---------------------------------------------------------------------------

*** crypt.c	Tue May 25 10:05:43 1999
--- /home/postgresql/crypt.c	Tue May 25 09:59:46 1999
***************
*** 148,156 ****
  								 * reload */
  			while (pwd_cache_count--)
  			{
! 				pfree((void *) pwd_cache[pwd_cache_count]);
  			}
! 			pfree((void *) pwd_cache);
  			pwd_cache = NULL;
  			pwd_cache_count = 0;
  		}
--- 148,156 ----
  								 * reload */
  			while (pwd_cache_count--)
  			{
! 				free((void *) pwd_cache[pwd_cache_count]);
  			}
! 			free((void *) pwd_cache);
  			pwd_cache = NULL;
  			pwd_cache_count = 0;
  		}
***************
*** 172,178 ****
  				buffer[result] = '\0';

pwd_cache = (char **) realloc((void *) pwd_cache, sizeof(char *) * (pwd_cache_count + 1));
! pwd_cache[pwd_cache_count++] = pstrdup(buffer);
}
FreeFile(pwd_file);

--- 172,178 ----
  				buffer[result] = '\0';

pwd_cache = (char **) realloc((void *) pwd_cache, sizeof(char *) * (pwd_cache_count + 1));
! pwd_cache[pwd_cache_count++] = strdup(buffer);
}
FreeFile(pwd_file);

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026