Re: patch for pgsql password - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: patch for pgsql password
Date
Msg-id 199905270410.AAA19919@candle.pha.pa.us
Whole thread Raw
List pgsql-hackers
> > 
> > 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,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] v6.5 under FreeBSD ...
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Help: fmgr_info: function 0: cache lookup failed