refactor: resolve Sonar cpp:S1172 findings (#5916)

This commit is contained in:
Dave Lane authored and GitHub committed 2026-10-13 16:42:40 -04:00
1 parent 7c124b4392
commit 3710a231df
15 files changed
+294 -112

No files matched your search

+5 -1
View File
@@ -471,7 +471,11 @@ namespace platf {
return "00:00:00:00:00:00"s;
}
bp::child run_command(bool elevated, bool interactive, const std::string &cmd, boost::filesystem::path &working_dir, const bp::environment &env, FILE *file, std::error_code &ec, bp::group *group) {
/**
* @brief Launch a command using the caller's Linux privileges and session.
* @details The common platform signature's elevation and interactivity flags do not apply on Linux.
*/
bp::child run_command(bool, bool, const std::string &cmd, boost::filesystem::path &working_dir, const bp::environment &env, FILE *file, std::error_code &ec, bp::group *group) {
// clang-format off
if (!group) {
if (!file) {