Fix handling of restricted processes for Windows Vista (mainly),
authorMagnus Hagander <magnus@hagander.net>
Fri, 29 Feb 2008 15:31:41 +0000 (15:31 +0000)
committerMagnus Hagander <magnus@hagander.net>
Fri, 29 Feb 2008 15:31:41 +0000 (15:31 +0000)
commit6ac3cd2ab8007197e60690cc917cdcef76fd061c
treefc8df0b975467a98de4c5d09fa701b4a4aa2708e
parent54c8c426f80e0888e930e75f747652178fd40ac4
Fix handling of restricted processes for Windows Vista (mainly),
by explicitly adding back the user to the DACL of the new process.
This fixes the failure case when executing as the Administrator
user, which had no permissions left at all after we dropped the
Administrators group.

Dave Page with some modifications from me
src/bin/initdb/initdb.c
src/bin/pg_ctl/pg_ctl.c
src/include/port.h
src/port/exec.c