From 9103e8e13f7dcfc0177d0202895185b442db8bc3 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 24 Jun 2009 01:46:33 +0000 Subject: fixed ifconfig calls for linux and bsd fixed execve error handling --- src/linux/tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/linux/tun.c') diff --git a/src/linux/tun.c b/src/linux/tun.c index e46e5ee..77f95fe 100644 --- a/src/linux/tun.c +++ b/src/linux/tun.c @@ -197,7 +197,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, NULL }; + char* const argv[] = { "/sbin/ifconfig", dev->actual_name_, dev->net_addr_, "netmask", dev->net_mask_, "mtu", mtu_str, NULL }; uanytun_exec("/sbin/ifconfig", argv, NULL); free(mtu_str); -- cgit v1.2.3