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)
commit9b7a73f971ffda9c5ae88e9a5f8e22169d1a5a5c
tree0ee3bd001e809ad5c919ebaec893de512ebc95c8
parent5e7343d525efbe9e16cd8da7d9060c85e6f6c233
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