diff options
author | Christian Pointner <equinox@anytun.org> | 2009-06-24 01:46:33 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-06-24 01:46:33 +0000 |
commit | 9103e8e13f7dcfc0177d0202895185b442db8bc3 (patch) | |
tree | b3e6a1d8e620f58896a8845b33bdbf6812eba0e2 /src/bsd | |
parent | bsd tun device now also uses uanytun_exec (diff) |
fixed ifconfig calls for linux and bsd
fixed execve error handling
Diffstat (limited to 'src/bsd')
-rw-r--r-- | src/bsd/tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bsd/tun.c b/src/bsd/tun.c index e2736ec..31ddd6c 100644 --- a/src/bsd/tun.c +++ b/src/bsd/tun.c @@ -335,7 +335,7 @@ void tun_do_ifconfig(tun_device_t* dev) return; } - char* const argv[] = { dev->actual_name_, dev->net_addr_, "netmask", dev->net_mask_, "mtu", mtu_str, end, NULL }; + char* const argv[] = { "/sbin/ifconfig", dev->actual_name_, dev->net_addr_, "netmask", dev->net_mask_, "mtu", mtu_str, end, NULL }; uanytun_exec("/sbin/ifconfig", argv, NULL); free(mtu_str); |