From 4cb2449f24a39edd0db511485a4f727ec9655195 Mon Sep 17 00:00:00 2001 From: Master Date: Mon, 29 Jun 2020 23:51:18 -0400 Subject: [PATCH] improved error reporting on setegid failure --- src/Sproc/Sproc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sproc/Sproc.cpp b/src/Sproc/Sproc.cpp index 4e2f1e3..5d0b815 100644 --- a/src/Sproc/Sproc.cpp +++ b/src/Sproc/Sproc.cpp @@ -91,7 +91,7 @@ int Sproc::execute(std::string run_as, std::string group, std::string command ) { slog.log( E_INFO, "Successfully set GID to '" + std::to_string(run_as_gid) + "' (" + group + ")." ); } else { - slog.log( E_FATAL, "Failed to set GID. Panicking. (setegid: " + std::to_string( setegidval ) + ")" ); + slog.log( E_FATAL, "Failed to set GID. Panicking. (setegid: " + std::to_string( setegidval ) + "/" + std::to_string(errno) + ")" ); return -401; } exit_code_raw = system( command.c_str() );