Skip to content

Commit 64f30bb

Browse files
committed
Don't call AddUserToDacl on Cygwin
1 parent 7157114 commit 64f30bb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/bin/initdb/initdb.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* Portions Copyright (c) 1994, Regents of the University of California
4343
* Portions taken from FreeBSD.
4444
*
45-
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.154 2008/02/29 15:31:33 mha Exp $
45+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.155 2008/02/29 23:31:20 adunstan Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -2346,7 +2346,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
23462346
return 0;
23472347
}
23482348

2349+
#ifndef __CYGWIN__
23492350
AddUserToDacl(processInfo->hProcess);
2351+
#endif
23502352

23512353
return ResumeThread(processInfo->hThread);
23522354
}

src/bin/pg_ctl/pg_ctl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.95 2008/02/29 15:31:33 mha Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.96 2008/02/29 23:31:20 adunstan Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -1469,7 +1469,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
14691469
}
14701470
}
14711471

1472+
#ifndef __CYGWIN__
14721473
AddUserToDacl(processInfo->hProcess);
1474+
#endif
14731475

14741476
CloseHandle(restrictedToken);
14751477

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy