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

Magnus Hagander <magnus@hagander.net>

Commit: b7394915520b29fb2d164ad4c55fd9adf51c14df
Author: Magnus Hagander <magnus@hagander.net>
Date: 2008-02-29T15:31:41Z
Releases: 8.3.1
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