Skip to content

Commit da956ae

Browse files
committed
Don't call AddUserToDacl on Cygwin
1 parent c6f4015 commit da956ae

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.152.2.1 2008/02/29 15:31:40 mha Exp $
45+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.152.2.2 2008/02/29 23:31:42 adunstan Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -2349,7 +2349,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
23492349
return 0;
23502350
}
23512351

2352+
#ifndef __CYGWIN__
23522353
AddUserToDacl(processInfo->hProcess);
2354+
#endif
23532355

23542356
return ResumeThread(processInfo->hThread);
23552357
}

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.92.2.2 2008/02/29 15:31:40 mha Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.92.2.3 2008/02/29 23:31:42 adunstan Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -1471,7 +1471,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
14711471
}
14721472
}
14731473

1474+
#ifndef __CYGWIN__
14741475
AddUserToDacl(processInfo->hProcess);
1476+
#endif
14751477

14761478
CloseHandle(restrictedToken);
14771479

0 commit comments

Comments
 (0)