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

From: "Dann Corbit" <DCorbit(at)connx(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Alvaro Herrera" <alvherre(at)atentus(dot)com>
Cc: "Gordon Runkle" <gar(at)integrated-dynamics(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U
Date: 2002-08-30 04:12:28
Message-ID: D90A5A6C612A39408103E6ECDD77B82920D189@voyager.corporate.connx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: Thursday, August 29, 2002 9:07 PM
> To: Alvaro Herrera
> Cc: Gordon Runkle; pgsql-hackers(at)postgresql(dot)org
> Subject: Re: [HACKERS] [7.3devl] Using PGPASSWORDFILE with
> psql requires -U
>
>
> Alvaro Herrera <alvherre(at)atentus(dot)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.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2002-08-30 04:17:09 Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U
Previous Message Tom Lane 2002-08-30 04:07:28 Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U