Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64f30bb

Browse files
committed
Don't call AddUserToDacl on Cygwin
1 parent7157114 commit64f30bb

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/2915:31:33 mha Exp $
45+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.155 2008/02/2923:31:20 adunstan Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -2346,7 +2346,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
23462346
return0;
23472347
}
23482348

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

23512353
returnResumeThread(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/2915:31:33 mha Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.96 2008/02/2923: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)

[8]ページ先頭

©2009-2025 Movatter.jp