1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00

Canonicalized the configuration directory.

This commit is contained in:
Rolf Ahrenberg 2010-12-03 16:00:40 +02:00
parent 66ab92584b
commit 2081ab41a8
3 changed files with 3 additions and 2 deletions

View File

@ -155,3 +155,4 @@ VDR Plugin 'iptv' Revision History
- Fixed EXT protocol execution (Thanks to Peter Holik).
- Disable detaching of receivers if retuned to an existing
channel (Thanks to Zdeněk Kopřivík).
- Canonicalized the configuration directory.

View File

@ -43,5 +43,5 @@ void cIptvConfig::SetDisabledFilters(unsigned int Index, int Number)
void cIptvConfig::SetConfigDirectory(const char *directoryP)
{
debug("cIptvConfig::SetConfigDirectory(%s)", directoryP);
strn0cpy(configDirectory, directoryP, sizeof(configDirectory));
ERROR_IF(!realpath(directoryP, configDirectory), "Cannot canonicalize configuration directory");
}

View File

@ -20,7 +20,7 @@ private:
unsigned int useBytes;
unsigned int sectionFiltering;
int disabledFilters[SECTION_FILTER_TABLE_SIZE];
char configDirectory[255];
char configDirectory[PATH_MAX];
public:
cIptvConfig();