*** pgsql/src/bin/initdb/initdb.c 2009/11/15 09:08:45 1.125.2.4 --- pgsql/src/bin/initdb/initdb.c 2009/11/20 01:28:18 1.125.2.5 *************** *** 42,48 **** * Portions Copyright (c) 1994, Regents of the University of California * Portions taken from FreeBSD. * ! * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.125.2.3 2009/03/31 18:58:34 mha Exp $ * *------------------------------------------------------------------------- */ --- 42,48 ---- * Portions Copyright (c) 1994, Regents of the University of California * Portions taken from FreeBSD. * ! * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.125.2.4 2009/11/15 09:08:45 mha Exp $ * *------------------------------------------------------------------------- */ *************** CreateRestrictedProcess(char *cmd, PROCE *** 2336,2345 **** return 0; } - #ifndef __CYGWIN__ - AddUserToTokenDacl(restrictedToken); - #endif - if (!CreateProcessAsUser(restrictedToken, NULL, cmd, --- 2336,2341 ---- *************** CreateRestrictedProcess(char *cmd, PROCE *** 2357,2362 **** --- 2353,2362 ---- return 0; } + #ifndef __CYGWIN__ + AddUserToDacl(processInfo->hProcess); + #endif + return ResumeThread(processInfo->hThread); } #endif