cleanup after changes

master
Master 2020-06-29 21:06:18 -04:00
parent f4a38de0c0
commit af18419eda
1 changed files with 2 additions and 2 deletions

View File

@ -80,14 +80,14 @@ int Sproc::execute(std::string run_as, std::string group, std::string command )
// child process
if ( seteuid( run_as_uid ) == 0 )
{
slog.log( E_DEBUG, "Successfully set UID to '" + std::to_string(run_as_uid) + "'." );
slog.log( E_INFO, "Successfully set UID to '" + std::to_string(run_as_uid) + "' (" + run_as + ")." );
} else {
slog.log( E_FATAL, "Failed to set UID. Panicking." );
return -401;
}
if ( setegid( run_as_gid ) == 0 )
{
slog.log( E_DEBUG, "Successfully set GID to '" + std::to_string(run_as_gid) + "'." );
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." );
return -401;