summaryrefslogtreecommitdiff
path: root/src/uanytun.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-06-24 01:46:33 +0000
committerChristian Pointner <equinox@anytun.org>2009-06-24 01:46:33 +0000
commit9103e8e13f7dcfc0177d0202895185b442db8bc3 (patch)
treeb3e6a1d8e620f58896a8845b33bdbf6812eba0e2 /src/uanytun.c
parentbsd tun device now also uses uanytun_exec (diff)
fixed ifconfig calls for linux and bsd
fixed execve error handling
Diffstat (limited to 'src/uanytun.c')
-rw-r--r--src/uanytun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uanytun.c b/src/uanytun.c
index 7ce1871..9f5e8b2 100644
--- a/src/uanytun.c
+++ b/src/uanytun.c
@@ -401,7 +401,7 @@ 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[] = { dev.actual_name_, NULL };
+ char* const argv[] = { opt.post_up_script_, dev.actual_name_, NULL };
int ret = uanytun_exec(opt.post_up_script_, argv, NULL);
}