[Patch] Deimpersonate while accessing HKLM

2004-10-27 Thread Pierre A. Humblet
This patch should fix the chdir problem reported by Jason Tishler. It deimpersonates while reading the mounts and cygdrive in HKLM. For ease of initialization, the unused cygheap->user tokens are now set to NO_IMPERSONATION (instead of INVALID_HANDLE_VALUE), which is #defined as NULL. If the argu

Re: [Patch] Deimpersonate while accessing HKLM

2004-10-27 Thread Christopher Faylor
On Wed, Oct 27, 2004 at 08:33:01PM -0400, Pierre A. Humblet wrote: >This patch should fix the chdir problem reported by Jason Tishler. It >deimpersonates while reading the mounts and cygdrive in HKLM. > >For ease of initialization, the unused cygheap->user tokens are now set >to NO_IMPERSONATION (

Re: [Patch] Deimpersonate while accessing HKLM

2004-10-28 Thread Jason Tishler
Pierre, On Wed, Oct 27, 2004 at 08:33:01PM -0400, Pierre A. Humblet wrote: > This patch should fix the chdir problem reported by Jason Tishler. > It deimpersonates while reading the mounts and cygdrive in HKLM. I can confirm that the above solves the proftpd chdir problem. I really appreciate yo

Re: [Patch] Deimpersonate while accessing HKLM

2004-10-28 Thread Brian Ford
On Wed, 27 Oct 2004, Pierre A. Humblet wrote: > This patch should fix the chdir problem reported by Jason Tishler. > It deimpersonates while reading the mounts and cygdrive in HKLM. > > For ease of initialization, the unused cygheap->user tokens are > now set to NO_IMPERSONATION (instead of INVALI

Re: [Patch] Deimpersonate while accessing HKLM

2004-10-28 Thread Brian Ford
On Thu, 28 Oct 2004, Brian Ford wrote: > This may very well be user error, but I thought it important to report. > After compiling current CVS I get a slew of: > > 53 [main] sh 3064 cygheap_user::reimpersonate: ImpersonateLoggedOnUser: > Win32 error 6 Yup, user error. After a clean build, this p