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:
parent
66ab92584b
commit
2081ab41a8
1
HISTORY
1
HISTORY
@ -155,3 +155,4 @@ VDR Plugin 'iptv' Revision History
|
|||||||
- Fixed EXT protocol execution (Thanks to Peter Holik).
|
- Fixed EXT protocol execution (Thanks to Peter Holik).
|
||||||
- Disable detaching of receivers if retuned to an existing
|
- Disable detaching of receivers if retuned to an existing
|
||||||
channel (Thanks to Zdeněk Kopřivík).
|
channel (Thanks to Zdeněk Kopřivík).
|
||||||
|
- Canonicalized the configuration directory.
|
||||||
|
2
config.c
2
config.c
@ -43,5 +43,5 @@ void cIptvConfig::SetDisabledFilters(unsigned int Index, int Number)
|
|||||||
void cIptvConfig::SetConfigDirectory(const char *directoryP)
|
void cIptvConfig::SetConfigDirectory(const char *directoryP)
|
||||||
{
|
{
|
||||||
debug("cIptvConfig::SetConfigDirectory(%s)", directoryP);
|
debug("cIptvConfig::SetConfigDirectory(%s)", directoryP);
|
||||||
strn0cpy(configDirectory, directoryP, sizeof(configDirectory));
|
ERROR_IF(!realpath(directoryP, configDirectory), "Cannot canonicalize configuration directory");
|
||||||
}
|
}
|
||||||
|
2
config.h
2
config.h
@ -20,7 +20,7 @@ private:
|
|||||||
unsigned int useBytes;
|
unsigned int useBytes;
|
||||||
unsigned int sectionFiltering;
|
unsigned int sectionFiltering;
|
||||||
int disabledFilters[SECTION_FILTER_TABLE_SIZE];
|
int disabledFilters[SECTION_FILTER_TABLE_SIZE];
|
||||||
char configDirectory[255];
|
char configDirectory[PATH_MAX];
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cIptvConfig();
|
cIptvConfig();
|
||||||
|
Loading…
Reference in New Issue
Block a user