Re: initdb failure on win32

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: Thomas Hallgren <thhal(at)mailblocks(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: initdb failure on win32
Date: 2004-08-18 18:38:06
Message-ID: 200408181838.i7IIc6d06490@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Magnus Hagander wrote:
> > > There is a fixed buffer of 1024 bytes. I have a feeling
> > ythat one has
> > > to be changed to dynamic.
> > >
> > You're quite right. The 'InfoBufferSize' denotes 1122 bytes
> > after this call.
> >
> > if(!GetTokenInformation(AccessToken,TokenGroups,InfoBuffer,102
> > 4,&InfoBufferSize))
>
> Ah.
> Your stop-gap fix is to double the size of the buffer.
>
> I'll try to get a patch in for dynamic buffer handling in the next
> couple of days as the real fix.
>
> Just to be sure: Bruce, open item please for "Use dynamic buffer for
> token buffer in win32 admin check"

OK, text updated.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-08-18 19:28:39 Re: gcc: unrecognized option `-pthreads'
Previous Message Bruce Momjian 2004-08-18 18:35:20 Re: 8.0 libpq: missing get_home_path()