Commit 38ab58a5 authored by Natanael Copa's avatar Natanael Copa

abuild-sudo: print error message if execv fails

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