Skip site navigation (1) Skip section navigation (2)

Re: [PORTS] Windows XP could not get token information: 122

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Fred Pederndong" <fred_j_pederndong(at)yahoo(dot)com>
Cc: "PostgreSQL Patches" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [PORTS] Windows XP could not get token information: 122
Date: 2004-11-14 13:55:20
Message-ID: (view raw or whole thread)
Lists: pgsql-patches
Since nobody did :-), here is the patch to fix pgwin32_is_service() to
use dynamic buffers.
Fred - this applies to current cvs. There has been some error msg
cleanups since beta4, so I'm not sure it'll apply cleanly to that one.

	-----Original Message-----
	From: Magnus Hagander 
	Sent: den 13 november 2004 23:56
	To: Fred Pederndong; pgsql-ports(at)postgresql(dot)org
	Subject: Re: [PORTS] Windows XP could not get token information:
	This is clearly a case of oversight in my fix of token buffers
in src/backend/port/win32/security.c.
	pgwin32_is_admin() correctly uses a dynamic buffer.
pgwin32_is_service() does not.
	I'll code up a patch for this tomorrow, unless beaten to it. If
you want to do it yourself, just copy the logic from is_admin to
is_service. note that there are two calls to gettokeninformation in
is_service - both need dynamic buffers.

		-----Original Message-----
		From: Fred Pederndong
		Sent: den 9 november 2004 21:33
		To: pgsql-ports(at)postgresql(dot)org
		Subject: [PORTS] Windows XP could not get token
information: 122
		I built postgreSQL 8.0 beta 4 from scratch on Windows XP
SP1 using minGW/MSYS and encountered the following error when attempting
to run the resulting executable:
		could not get token information: 122
		I appreciate any help...
		Fred J.


		Do you Yahoo!?
		Check out the new Yahoo! Front Page.

Attachment: tokenbuffer2.patch
Description: application/octet-stream (6.7 KB)


pgsql-patches by date

Next:From: Peter EisentrautDate: 2004-11-14 18:29:58
Subject: psql \e broken again
Previous:From: Gavin SherryDate: 2004-11-14 12:05:03
Subject: Patch pg_start_backup() to ERROR if archiving is not defined

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group