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

From: Alvaro Herrera <alvherre(at)atentus(dot)com>
To: Dann Corbit <DCorbit(at)connx(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)atentus(dot)com>, 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:17:09
Message-ID: Pine.LNX.4.44.0208300013360.22147-100000@cm-lcon1-46-187.cm.vtr.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dann Corbit dijo:

> > 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.

Actually I have nothing against strdup(), and I think I have seen it in
Pg source. I just didn't think about it ;-)

Feel free to change it if you want...

--
Alvaro Herrera (<alvherre[a]atentus.com>)
One man's impedance mismatch is another man's layer of abstraction.
(Lincoln Yeoh)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-08-30 04:25:29 Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U
Previous Message Dann Corbit 2002-08-30 04:12:28 Re: [7.3devl] Using PGPASSWORDFILE with psql requires -U