From: Andrew Dunstan Date: Fri, 29 Feb 2008 23:31:57 +0000 (+0000) Subject: Don't call AddUserToDacl on Cygwin X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=bc1fda9587cd5040d645039dbfcee9717971ae90;p=users%2Fbernd%2Fpostgres.git Don't call AddUserToDacl on Cygwin --- diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 16f12da3a2..a266c821e3 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -2341,7 +2341,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo) return 0; } +#ifndef __CYGWIN__ AddUserToDacl(processInfo->hProcess); +#endif return ResumeThread(processInfo->hThread); } diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index 4e28e111b1..d9366ba3ff 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -1424,7 +1424,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo) } } +#ifndef __CYGWIN__ AddUserToDacl(processInfo->hProcess); +#endif CloseHandle(restrictedToken);