mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
overload access(2)
Conflicts: src/driver/pictureviewer/pictureviewer.cpp src/gui/components/cc_item_picture.cpp src/gui/movieplayer.cpp src/gui/osdlang_setup.cpp src/neutrino.cpp src/nhttpd/tuxboxapi/coolstream/neutrinoapi.cpp src/nhttpd/yhttpd.cpp src/system/helpers.h src/system/setting_helpers.cpp
This commit is contained in:
@@ -104,7 +104,7 @@ void CNetworkConfig::init_vars(void)
|
||||
wireless = 0;
|
||||
std::string tmp = "/sys/class/net/" + ifname + "/wireless";
|
||||
|
||||
if(access(tmp.c_str(), R_OK) == 0)
|
||||
if(access(tmp, R_OK) == 0)
|
||||
wireless = 1;
|
||||
if(wireless)
|
||||
readWpaConfig();
|
||||
|
Reference in New Issue
Block a user