Fix handling of restricted processes for Windows Vista (mainly),

Magnus Hagander <magnus@hagander.net>

Commit: 2d2b0222677fb00b09ee724127a6643c3d451af3
Author: Magnus Hagander <magnus@hagander.net>
Date: 2008-02-29T15:31:33Z
Releases: 8.4.0
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

Files

PathChange+/−
src/bin/initdb/initdb.c modified +21 −2
src/bin/pg_ctl/pg_ctl.c modified +3 −1
src/include/port.h modified +7 −1
src/port/exec.c modified +218 −1