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).
|
||||
- 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
Block a user