mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Uemis fix for Ubuntu
Fixing a bug preventing to download files on Ubuntu. On Ubuntu some files are recognized as DIR and not as regular files. This is a fix that works but most lilely does not address the root cause which would need an expert to look at.. Signed-off-by: Guido Lerch <guido.lerch@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									569cfe1bc8
								
							
						
					
					
						commit
						07b4878c52
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -207,7 +207,7 @@ static int number_of_file(char *path) | |||
| 		entry = readdir(dirp); | ||||
| 		if (!entry) | ||||
| 			break; | ||||
| 		if (entry->d_type == DT_REG) /* If the entry is a regular file */ | ||||
| 		if (strstr(entry->d_name, ".TXT") || strstr(entry->d_name, ".txt")) /* If the entry is a regular file */ | ||||
| #endif | ||||
| 		count++; | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue