mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 787279 - Unbreak OS_BSD build after bug 782456. r=cjones
This commit is contained in:
parent
a879438dfd
commit
bf379d516a
@ -6,7 +6,6 @@
|
||||
|
||||
#include "base/process_util.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/wait.h>
|
||||
@ -95,7 +94,7 @@ bool LaunchApp(const std::vector<std::string>& argv,
|
||||
bool wait, ProcessHandle* process_handle,
|
||||
ProcessArchitecture arch) {
|
||||
return LaunchApp(argv, fds_to_remap, env_vars_to_set,
|
||||
SAME_PRIVILEGES_AS_PARENT,
|
||||
PRIVILEGES_INHERIT,
|
||||
wait, process_handle);
|
||||
}
|
||||
|
||||
@ -220,7 +219,7 @@ bool LaunchApp(const std::vector<std::string>& argv,
|
||||
bool wait, ProcessHandle* process_handle,
|
||||
ProcessArchitecture arch) {
|
||||
return LaunchApp(argv, fds_to_remap, env_vars_to_set,
|
||||
SAME_PRIVILEGES_AS_PARENT,
|
||||
PRIVILEGES_INHERIT,
|
||||
wait, process_handle);
|
||||
}
|
||||
|
||||
@ -256,7 +255,7 @@ bool LaunchApp(const std::vector<std::string>& argv,
|
||||
argv_cstr[i] = const_cast<char*>(argv[i].c_str());
|
||||
argv_cstr[argv.size()] = NULL;
|
||||
|
||||
if (privs == UNPRIVILEGED) {
|
||||
if (privs == PRIVILEGES_UNPRIVILEGED) {
|
||||
if (setgid(CHILD_UNPRIVILEGED_GID) != 0) {
|
||||
DLOG(ERROR) << "FAILED TO setgid() CHILD PROCESS, path: " << argv_cstr[0];
|
||||
_exit(127);
|
||||
|
Loading…
Reference in New Issue
Block a user