Don't call AddUserToDacl on Cygwin
authorAndrew Dunstan <[email protected]>
Fri, 29 Feb 2008 23:31:57 +0000 (23:31 +0000)
committerAndrew Dunstan <[email protected]>
Fri, 29 Feb 2008 23:31:57 +0000 (23:31 +0000)
src/bin/initdb/initdb.c
src/bin/pg_ctl/pg_ctl.c

index 16f12da3a29a15dfa8dad507e50dbd788d546f15..a266c821e3c4a5b8c7ab6fa60ece22bfa29cbfd3 100644 (file)
@@ -2341,7 +2341,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
                return 0;
        }
 
+#ifndef __CYGWIN__
        AddUserToDacl(processInfo->hProcess);
+#endif
 
        return ResumeThread(processInfo->hThread);
 }
index 4e28e111b1fcbdf7fca3abe321a1832b168df478..d9366ba3fff3a418fd47eab8f077469a183108fa 100644 (file)
@@ -1424,7 +1424,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
                }
        }
 
+#ifndef __CYGWIN__
     AddUserToDacl(processInfo->hProcess);
+#endif
     
        CloseHandle(restrictedToken);