]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
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 831eed319f02d408c7220ba998378ea90fceb621..55dbdf9284dad5bcc25f90126fb873c8571d302e 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.125.2.1 2008/02/29 15:31:37 mha Exp $
+ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.125.2.2 2008/02/29 23:31:57 adunstan Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -2341,7 +2341,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
                return 0;
        }
 
+#ifndef __CYGWIN__
        AddUserToDacl(processInfo->hProcess);
+#endif
 
        return ResumeThread(processInfo->hThread);
 }
index 9b65a09382cedd4943464c40f91797bacd7e42d3..4ce60e7cda87428f692376c87134206b10c85462 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.74.2.3 2008/02/29 15:31:37 mha Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.74.2.4 2008/02/29 23:31:57 adunstan Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1424,7 +1424,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
                }
        }
 
+#ifndef __CYGWIN__
     AddUserToDacl(processInfo->hProcess);
+#endif
     
        CloseHandle(restrictedToken);