diff options
author | Stef Walter <stef@memberwebs.com> | 2004-05-18 19:15:01 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-05-18 19:15:01 +0000 |
commit | a0012381dee49eb907b906607263638f69996fd7 (patch) | |
tree | 6b1995a923cd97e62dce2ec07c177490dc134748 /src/jstart.c | |
parent | f5f4e22e50450c7459800b4ca03894326df236b9 (diff) |
- Fixed implementation bugs in old jstart
- Cleaned up old src directory in CVS
Diffstat (limited to 'src/jstart.c')
-rw-r--r-- | src/jstart.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jstart.c b/src/jstart.c index b244aa4..43c68ab 100644 --- a/src/jstart.c +++ b/src/jstart.c @@ -5,6 +5,7 @@ #include <sys/types.h> #include <sys/param.h> #include <sys/jail.h> +#include <sys/stat.h> #include <netinet/in.h> #include <arpa/inet.h> @@ -12,8 +13,10 @@ #include <paths.h> #include <stdio.h> #include <err.h> +#include <errno.h> #include <unistd.h> #include <limits.h> +#include <stdlib.h> #ifdef HAVE_CONFIG_H #include "../config.h" @@ -129,6 +132,6 @@ static void run_command(const char* cmd, char* args[]) MAKE_ENV_VAR("LINES"); if(execve(cmd, args, env) != 0) - err("couldn't execute command: %s", cmd); + err(1, "couldn't execute command: %s", cmd); } |