diff options
author | Christian Pointner <equinox@anytun.org> | 2009-06-24 00:06:30 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-06-24 00:06:30 +0000 |
commit | ea8bc8b96cc518b0fdcd7f2fee0d4689b12b5a2e (patch) | |
tree | bc4f4c8581c7726f8708c2ab6ad1ce15c2bbc7b2 /src/uanytun.c | |
parent | added timestamp to file, stdout and stderr log messages (diff) |
moved from execl to 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 c20cbeb..7ce1871 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -401,7 +401,8 @@ int main(int argc, char* argv[]) if(opt.post_up_script_) { log_printf(NOTICE, "executing post-up script '%s'", opt.post_up_script_); - int ret = exec_script(opt.post_up_script_, dev.actual_name_); + char* const argv[] = { dev.actual_name_, NULL }; + int ret = uanytun_exec(opt.post_up_script_, argv, NULL); } |