mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +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
Origin commit data
------------------
Commit: 81ca577fb8
Author: martii <m4rtii@gmx.de>
Date: 2013-06-30 (Sun, 30 Jun 2013)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user