summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-05-29 15:01:00 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2013-05-29 15:01:00 +0200
commit38ab58a5d63d69cf756ea398537e45101690242f (patch)
tree7b3c5cdb8e24969b7b3d0a4fae98610f5e4ba8d5
parent67e769e605a09338b1234b2a9503305ebd632832 (diff)
downloadabuild-38ab58a5d63d69cf756ea398537e45101690242f.tar.gz
abuild-38ab58a5d63d69cf756ea398537e45101690242f.tar.bz2
abuild-38ab58a5d63d69cf756ea398537e45101690242f.tar.xz
abuild-38ab58a5d63d69cf756ea398537e45101690242f.zip
abuild-sudo: print error message if execv fails
-rw-r--r--abuild-sudo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/abuild-sudo.c b/abuild-sudo.c
index 8c61ad0..08477dc 100644
--- a/abuild-sudo.c
+++ b/abuild-sudo.c
@@ -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;
}