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

index 7c7ff8002ecfacdac98c92df50f493d0a3b63f06..c77630ec27031bebc3686efb9eef188502c489b6 100644 (file)
@@ -2346,7 +2346,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
                return 0;
        }
 
+#ifndef __CYGWIN__
        AddUserToDacl(processInfo->hProcess);
+#endif
 
        return ResumeThread(processInfo->hThread);
 }
index 3add115f07d8006d55214c0c0311cd1a5b72d3a4..2c6de577c7da8d63deb6ebc9b8feb01a3aa7469a 100644 (file)
@@ -1469,7 +1469,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
                }
        }
 
+#ifndef __CYGWIN__
     AddUserToDacl(processInfo->hProcess);
+#endif
     
        CloseHandle(restrictedToken);