Tom has applied a patch to fix this.
---
Alvaro Herrera wrote:
Gordon Runkle dijo:
I'm using the current CVS (as of ~1930 EDT, 29AUG02) on RedHat's latest
beta (null). I find that I need to use the -U option when
I'm using the current CVS (as of ~1930 EDT, 29AUG02) on RedHat's latest
beta (null). I find that I need to use the -U option when trying to use
psql and the new PGPASSWORDFILE variable.
Here's what I have in my ~/.pgpw file (pointed to by PGPASSWORDFILE):
localhost:*:az_audit:gar:test
This my
Gordon Runkle dijo:
I'm using the current CVS (as of ~1930 EDT, 29AUG02) on RedHat's latest
beta (null). I find that I need to use the -U option when trying to use
psql and the new PGPASSWORDFILE variable.
Ok, in private email with Gordon I discovered that I missed by one.
Please apply the
Alvaro Herrera [EMAIL PROTECTED] writes:
! ret=(char *)malloc(sizeof(char)*strlen(t));
! strncpy(ret, t, strlen(t));
! ret=(char *)malloc(sizeof(char)*(strlen(t)+1));
! strncpy(ret, t, strlen(t)+1);
What have you got against strdup() ?
-Original Message-
From: Tom Lane [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 9:07 PM
To: Alvaro Herrera
Cc: Gordon Runkle; [EMAIL PROTECTED]
Subject: Re: [HACKERS] [7.3devl] Using PGPASSWORDFILE with
psql requires -U
Alvaro Herrera [EMAIL PROTECTED] writes
Dann Corbit dijo:
Alvaro Herrera [EMAIL PROTECTED] writes:
! ret=(char *)malloc(sizeof(char)*strlen(t));
! strncpy(ret, t, strlen(t));
! ret=(char *)malloc(sizeof(char)*(strlen(t)+1));
! strncpy(ret, t,
Dann Corbit [EMAIL PROTECTED] writes:
What have you got against strdup() ?
The strdup() function is non-standard, and need not exist in a C
implementation.
But it *does* exist in all Postgres implementations. This is what
we carry around a port/ directory for ...