Re: patch for pgsql password

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: James Thompson <jamest(at)math(dot)ksu(dot)edu>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: patch for pgsql password
Date: 1999-05-27 04:10:17
Message-ID: 199905270410.AAA19919@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Browse pgsql-hackers by date

  From Date Subject
Next Message ZEUGSWETTER Andreas IZ5 1999-05-27 07:36:57 Re: [HACKERS] Open 6.5 items
Previous Message Tom Lane 1999-05-27 04:10:03 Re: [HACKERS] Help: fmgr_info: function 0: cache lookup failed