Re: [HACKERS] initdb failure on win32

2004-08-18 Thread Bruce Momjian
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,1

Re: [HACKERS] initdb failure on win32

2004-08-18 Thread Magnus Hagander
> > 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 st

Re: [HACKERS] initdb failure on win32

2004-08-17 Thread Thomas Hallgren
Magnus, 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,1024,&InfoBufferSize)) Regards, Thomas Hallgren -

Re: [HACKERS] initdb failure on win32

2004-08-17 Thread Magnus Hagander
t: den 17 augusti 2004 20:27 >To: [EMAIL PROTECTED] >Subject: [HACKERS] initdb failure on win32 > > >I'm trying to run initdb on win32, freshly compiled from CVS >HEAD, but I >get the following error: > >creating template1 database in data/base/1 ... failed to

[HACKERS] initdb failure on win32

2004-08-17 Thread Thomas Hallgren
I'm trying to run initdb on win32, freshly compiled from CVS HEAD, but I get the following error: creating template1 database in data/base/1 ... failed to get token information: 122 Any ideas? Regards, Thomas Hallgren ---(end of broadcast)--- TIP