diff --git a/common/util.c b/common/util.c index 3c581639..9d4615eb 100644 --- a/common/util.c +++ b/common/util.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "common/util.h" @@ -121,6 +122,7 @@ a_exec(const char *cmd) shell = "/bin/sh"; execl(shell, shell, "-c", cmd, NULL); + fatal("execv() failed: %s", strerror(errno)); } // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80