summaryrefslogtreecommitdiff
path: root/src/bin/pg_ctl/pg_ctl.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2008-02-29 23:31:20 +0000
committerAndrew Dunstan <andrew@dunslane.net>2008-02-29 23:31:20 +0000
commit64f30bb206f41b1d94d108466e259c1c9c9c2b73 (patch)
treefebd80098964f4308b40223c0d7bfd0978585166 /src/bin/pg_ctl/pg_ctl.c
parent7157114d54d346852c9678a4a38840ed875eec8a (diff)
Don't call AddUserToDacl on Cygwin
Diffstat (limited to 'src/bin/pg_ctl/pg_ctl.c')
-rw-r--r--src/bin/pg_ctl/pg_ctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
index 9e0e16ca6b1..89fc34d6860 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-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);