Don't call AddUserToDacl on Cygwin
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 29 Feb 2008 23:31:42 +0000 (23:31 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 29 Feb 2008 23:31:42 +0000 (23:31 +0000)
src/bin/initdb/initdb.c
src/bin/pg_ctl/pg_ctl.c

index fa3cdf1ea2fa15f58511ba9f8796010688d11d92..1640112ec5fcab0b70554f3e89cdf575f34f910a 100644 (file)
@@ -2349,7 +2349,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
                return 0;
        }
 
+#ifndef __CYGWIN__
        AddUserToDacl(processInfo->hProcess);
+#endif
 
        return ResumeThread(processInfo->hThread);
 }
index 480c61330ee1529724d6cd7d98d63c2b37005a36..66e441aa8b2e3d710a887a0f04170f0a70518dd2 100644 (file)
@@ -1471,7 +1471,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
                }
        }
 
+#ifndef __CYGWIN__
     AddUserToDacl(processInfo->hProcess);
+#endif
     
        CloseHandle(restrictedToken);