Re: [HACKERS] [7.3devl] Using PGPASSWORDFILE with psql requires -U

2002-08-30 Thread Bruce Momjian
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

[HACKERS] [7.3devl] Using PGPASSWORDFILE with psql requires -U option?

2002-08-29 Thread Gordon Runkle
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

Re: [HACKERS] [7.3devl] Using PGPASSWORDFILE with psql requires -U

2002-08-29 Thread Alvaro Herrera
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

Re: [HACKERS] [7.3devl] Using PGPASSWORDFILE with psql requires -U

2002-08-29 Thread Tom Lane
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() ?

Re: [HACKERS] [7.3devl] Using PGPASSWORDFILE with psql requires -U

2002-08-29 Thread Dann Corbit
-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

Re: [HACKERS] [7.3devl] Using PGPASSWORDFILE with psql requires -U

2002-08-29 Thread Alvaro Herrera
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,

Re: [HACKERS] [7.3devl] Using PGPASSWORDFILE with psql requires -U

2002-08-29 Thread Tom Lane
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 ...