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:
Guido Lerch 2015-10-21 14:51:11 +02:00 committed by Dirk Hohndel
parent 569cfe1bc8
commit 07b4878c52

View file

@ -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++;
}