mirror of
				https://github.com/rofafor/vdr-plugin-iptv.git
				synced 2023-10-10 11:37:03 +00:00 
			
		
		
		
	Canonicalized the configuration directory.
This commit is contained in:
		
							
								
								
									
										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");
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user