summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-06-24 21:28:52 +0000
committerChristian Pointner <equinox@anytun.org>2009-06-24 21:28:52 +0000
commit97a5cff11c2b64ca61b0903bcf6c9fa2b32e0916 (patch)
treeff90b00dd9ef7b116eaaa1b3655653a9f839c8e0
parentadded pipe to uanytun_exec for execve errors (diff)
cleanup
-rw-r--r--src/sysexec.c6
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