Bug 787279 - Unbreak OS_BSD build after bug 782456. r=cjones

This commit is contained in:
Jan Beich 2012-08-31 10:17:24 +02:00
parent a879438dfd
commit bf379d516a

View File

@ -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);