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


//Magnus

Wed, 18 Aug 2004 16:29:33 +0200
"Magnus Hagander" <mha@sollentuna.net>
Re: initdb failure on win32
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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Wed, 18 Aug 2004 14:38:06 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: initdb failure on win32