diff options
author | Christian Pointner <equinox@anytun.org> | 2009-06-24 21:28:52 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-06-24 21:28:52 +0000 |
commit | 97a5cff11c2b64ca61b0903bcf6c9fa2b32e0916 (patch) | |
tree | ff90b00dd9ef7b116eaaa1b3655653a9f839c8e0 | |
parent | added pipe to uanytun_exec for execve errors (diff) |
cleanup
-rw-r--r-- | src/sysexec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sysexec.c b/src/sysexec.c index 3522c11..dbf4bbb 100644 --- a/src/sysexec.c +++ b/src/sysexec.c @@ -71,12 +71,12 @@ int uanytun_exec(const char* script, char* const argv[], char* const evp[]) fd = open("/dev/null",O_RDWR); // stdin if(fd == -1) - log_printf(WARNING, "can't open stdin"); + log_printf(WARNING, "can't open stdin"); else { if(dup(fd) == -1) // stdout - log_printf(WARNING, "can't open stdout"); + log_printf(WARNING, "can't open stdout"); if(dup(fd) == -1) // stderr - log_printf(WARNING, "can't open stderr"); + log_printf(WARNING, "can't open stderr"); } execve(script, argv, evp); // if execve returns, an error occurred, but logging doesn't work |