#6162 Make --run-as-uid Linux specific
This commit is contained in:
parent
b028e88fed
commit
ad8a911590
|
@ -299,9 +299,11 @@ ArgParser::parseGenericArgs(int argc, const char* const* argv, int& i)
|
||||||
else if (isArg(i, argc, argv, NULL, "--plugin-dir", 1)) {
|
else if (isArg(i, argc, argv, NULL, "--plugin-dir", 1)) {
|
||||||
argsBase().m_pluginDirectory = argv[++i];
|
argsBase().m_pluginDirectory = argv[++i];
|
||||||
}
|
}
|
||||||
|
#if WINAPI_XWINDOWS
|
||||||
else if (isArg(i, argc, argv, NULL, "--run-as-uid", 1)) {
|
else if (isArg(i, argc, argv, NULL, "--run-as-uid", 1)) {
|
||||||
argsBase().m_runAsUid = std::stoi(argv[++i]);
|
argsBase().m_runAsUid = std::stoi(argv[++i]);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
else {
|
else {
|
||||||
// option not supported here
|
// option not supported here
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue