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).
|
||||
- Disable detaching of receivers if retuned to an existing
|
||||
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)
|
||||
{
|
||||
debug("cIptvConfig::SetConfigDirectory(%s)", directoryP);
|
||||
strn0cpy(configDirectory, directoryP, sizeof(configDirectory));
|
||||
ERROR_IF(!realpath(directoryP, configDirectory), "Cannot canonicalize configuration directory");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue