forked from qt-creator/qt-creator
Fix running as root
There is no need for TerminalRunner::setRunAsRoot() as debugger is already being run as root. Implement runAsRoot for non-terminal QtcProcess, too. Fixes: QTCREATORBUG-26964 Change-Id: Id5110db86b7b809a5608714464241cee73875f2b Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -79,7 +79,6 @@ public:
|
||||
|
||||
void kickoffProcess();
|
||||
void interruptProcess();
|
||||
void setRunAsRoot(bool on);
|
||||
|
||||
private:
|
||||
void start() final;
|
||||
@@ -92,7 +91,6 @@ private:
|
||||
std::function<ProjectExplorer::Runnable()> m_stubRunnable;
|
||||
qint64 m_applicationPid = 0;
|
||||
qint64 m_applicationMainThreadId = 0;
|
||||
bool m_runAsRoot = false;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user