Unverified Commit 11a3696f by Stéphane Graber Committed by GitHub

Merge pull request #3661 from blenk92/iw_error_msg

network: Add error message if iw couldn't be found
parents 642429e5 0ed79f45
...@@ -1553,8 +1553,10 @@ int lxc_netdev_move_wlan(char *physname, const char *ifname, pid_t pid, ...@@ -1553,8 +1553,10 @@ int lxc_netdev_move_wlan(char *physname, const char *ifname, pid_t pid,
* the 80211 module, so for now just call out to iw. * the 80211 module, so for now just call out to iw.
*/ */
cmd = on_path("iw", NULL); cmd = on_path("iw", NULL);
if (!cmd) if (!cmd) {
ERROR("Couldn't find the application iw in PATH");
return -1; return -1;
}
fpid = fork(); fpid = fork();
if (fpid < 0) if (fpid < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment