]> granicus.if.org Git - postgresql/commitdiff
Don't call AddUserToDacl on Cygwin
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 29 Feb 2008 23:31:20 +0000 (23:31 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 29 Feb 2008 23:31:20 +0000 (23:31 +0000)
src/bin/initdb/initdb.c
src/bin/pg_ctl/pg_ctl.c

index 41db8a8b02964628ddce3dbd7d7c9ac8e8b72bcb..193318d5f9baa2e7e57e2e14eb68fdcabf878e1b 100644 (file)
@@ -42,7 +42,7 @@
  * Portions Copyright (c) 1994, Regents of the University of California
  * Portions taken from FreeBSD.
  *
- * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.154 2008/02/29 15:31:33 mha Exp $
+ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.155 2008/02/29 23:31:20 adunstan Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -2346,7 +2346,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
                return 0;
        }
 
+#ifndef __CYGWIN__
        AddUserToDacl(processInfo->hProcess);
+#endif
 
        return ResumeThread(processInfo->hThread);
 }
index 9e0e16ca6b1b04a7421b515faf095c5b981db98c..89fc34d68608b3b27c7823a3a63054c3f04f7fc9 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.95 2008/02/29 15:31:33 mha Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.96 2008/02/29 23:31:20 adunstan Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1469,7 +1469,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
                }
        }
 
+#ifndef __CYGWIN__
     AddUserToDacl(processInfo->hProcess);
+#endif
     
        CloseHandle(restrictedToken);