mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +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:
@@ -392,7 +392,7 @@ void CFileBrowser::ChangeDir(const std::string & filename, int selection)
|
||||
std::string extension = file->Name.substr(ext_pos + 1, name.length() - ext_pos);
|
||||
if(strcasecmp(extension.c_str(), "ts") == 0) {
|
||||
std::string fname = file->Name.substr(0, ext_pos) + ".xml";
|
||||
if(access(fname.c_str(), F_OK) == 0)
|
||||
if(access(fname, F_OK) == 0)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user