diff options
author | Christian Pointner <equinox@anytun.org> | 2009-06-24 10:31:40 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-06-24 10:31:40 +0000 |
commit | 8770711aa8e6ec875f9d79b5eceab80f1935c498 (patch) | |
tree | bc12fe73b631e16d5a0588b08d1ea5a51c121c5f /src/uanytun.c | |
parent | fixed build on linux (diff) |
more portibke way of calling execve
Diffstat (limited to 'src/uanytun.c')
-rw-r--r-- | src/uanytun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uanytun.c b/src/uanytun.c index 9f5e8b2..81a293b 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -402,7 +402,8 @@ int main(int argc, char* argv[]) if(opt.post_up_script_) { log_printf(NOTICE, "executing post-up script '%s'", opt.post_up_script_); char* const argv[] = { opt.post_up_script_, dev.actual_name_, NULL }; - int ret = uanytun_exec(opt.post_up_script_, argv, NULL); + char* const evp[] = { NULL }; + int ret = uanytun_exec(opt.post_up_script_, argv, evp); } |