Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U - Mailing list pgsql-hackers

From Dann Corbit
Subject Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U
Date
Msg-id D90A5A6C612A39408103E6ECDD77B82920D189@voyager.corporate.connx.com
Whole thread Raw
Responses Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U  (Alvaro Herrera <alvherre@atentus.com>)
Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: Thursday, August 29, 2002 9:07 PM
> To: Alvaro Herrera
> Cc: Gordon Runkle; pgsql-hackers@postgresql.org
> Subject: Re: [HACKERS] [7.3devl] Using PGPASSWORDFILE with
> psql requires -U
>
>
> Alvaro Herrera <alvherre@atentus.com> 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() ?

The strdup() function is non-standard, and need not exist in a C
implementation.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U
Next
From: Alvaro Herrera
Date:
Subject: Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U