mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
Don't call AddUserToDacl on Cygwin
This commit is contained in:
parent
0f7b2753f5
commit
b97c70e18e
@ -42,7 +42,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
* Portions taken from FreeBSD.
|
* Portions taken from FreeBSD.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.125.2.1 2008/02/29 15:31:37 mha Exp $
|
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.125.2.2 2008/02/29 23:31:57 adunstan Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -2341,7 +2341,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __CYGWIN__
|
||||||
AddUserToDacl(processInfo->hProcess);
|
AddUserToDacl(processInfo->hProcess);
|
||||||
|
#endif
|
||||||
|
|
||||||
return ResumeThread(processInfo->hThread);
|
return ResumeThread(processInfo->hThread);
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.74.2.3 2008/02/29 15:31:37 mha Exp $
|
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.74.2.4 2008/02/29 23:31:57 adunstan Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1424,7 +1424,9 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION * processInfo)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __CYGWIN__
|
||||||
AddUserToDacl(processInfo->hProcess);
|
AddUserToDacl(processInfo->hProcess);
|
||||||
|
#endif
|
||||||
|
|
||||||
CloseHandle(restrictedToken);
|
CloseHandle(restrictedToken);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user