Skip to content
Snippets Groups Projects
Commit 38ab58a5 authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild-sudo: print error message if execv fails

parent 67e769e6
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,6 @@ int is_in_group(gid_t group)
free(buf);
return i < ngroups;
}
int main(int argc, const char *argv[])
{
......@@ -77,5 +76,6 @@ int main(int argc, const char *argv[])
/* set our uid to root soo bbsuid --install works */
setuid(0);
execv(path, (char * const*)argv);
perror(path);
return 1;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment