aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2008-02-29 23:31:57 +0000
committerAndrew Dunstan <andrew@dunslane.net>2008-02-29 23:31:57 +0000
commitb97c70e18e26c097486e8d269d5fc335999ee8b7 (patch)
treea2ebd8796eea2a56e71cf33fb4ff7944082b39d1 /src
parent0f7b2753f553b0e53c1002634796804e4f129481 (diff)
downloadpostgresql-b97c70e18e26c097486e8d269d5fc335999ee8b7.tar.gz
postgresql-b97c70e18e26c097486e8d269d5fc335999ee8b7.zip
Don't call AddUserToDacl on Cygwin
Diffstat (limited to 'src')
-rw-r--r--src/bin/initdb/initdb.c4
-rw-r--r--src/bin/pg_ctl/pg_ctl.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 831eed319f0..55dbdf9284d 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -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);
}
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
index 9b65a09382c..4ce60e7cda8 100644
--- a/src/bin/pg_ctl/pg_ctl.c
+++ b/src/bin/pg_ctl/pg_ctl.c
@@ -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);