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


Origin commit data
------------------
Commit: 81ca577fb8
Author: martii <m4rtii@gmx.de>
Date: 2013-06-30 (Sun, 30 Jun 2013)
This commit is contained in:
martii
2013-06-30 17:00:34 +02:00
committed by [CST] Focus
parent 19f7366c93
commit eb85bf0ad3
14 changed files with 42 additions and 28 deletions

View File

@@ -68,7 +68,7 @@ CNetworkService::CNetworkService(std::string cmd, std::string opts)
enabled = false;
std::string file = TOUCH_BASE + cmd;
if (!access(file.c_str(), F_OK))
if (!access(file, F_OK))
enabled = true;
}
@@ -181,7 +181,7 @@ int CNetworkServiceSetup::showNetworkServiceSetup()
std::string execute2 = "/sbin/" + services[i].cmd;
active = false;
if ( !(access(execute1.c_str(), F_OK)) || !(access(execute2.c_str(), F_OK)) )
if ( !(access(execute1, F_OK)) || !(access(execute2, F_OK)) )
active = true;
if ( (services[i].name == "Telnet") && useinetd)