remove debug code

This commit is contained in:
DanyLE 2025-03-08 17:49:24 +01:00
parent b6a91b02db
commit 9673ab67ba

View File

@ -211,11 +211,13 @@ static pid_t run_command_as(const gchar* command, const gchar* username)
g_critical("run_command_as: Unable to call setgid: %s", strerror(errno)); g_critical("run_command_as: Unable to call setgid: %s", strerror(errno));
exit(1); exit(1);
} }
/*
g_debug("run_command_as: setgroups: %d", numgroups); g_debug("run_command_as: setgroups: %d", numgroups);
for(int i = 0; i < numgroups; i++) for(int i = 0; i < numgroups; i++)
{ {
g_debug("run_command_as: group: %d \n", g_list[i]); g_debug("run_command_as: group: %d \n", g_list[i]);
} }
*/
if (setgroups(numgroups, g_list) == -1) if (setgroups(numgroups, g_list) == -1)
{ {
g_critical("run_command_as: Unable to call setgroups: %s", strerror(errno)); g_critical("run_command_as: Unable to call setgroups: %s", strerror(errno));