mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-01 19:45:33 +08:00
Don't call AddUserToDacl on Cygwin
This commit is contained in:
parent
c6f401573f
commit
da956ae76f
@ -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.152.2.1 2008/02/29 15:31:40 mha Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.152.2.2 2008/02/29 23:31:42 adunstan Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -2349,7 +2349,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef __CYGWIN__
|
||||
AddUserToDacl(processInfo->hProcess);
|
||||
#endif
|
||||
|
||||
return ResumeThread(processInfo->hThread);
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.92.2.2 2008/02/29 15:31:40 mha Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.92.2.3 2008/02/29 23:31:42 adunstan Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1471,7 +1471,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef __CYGWIN__
|
||||
AddUserToDacl(processInfo->hProcess);
|
||||
#endif
|
||||
|
||||
CloseHandle(restrictedToken);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user