aboutsummaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
authorGravatar Guido Lerch <guido.lerch@gmail.com>2015-10-21 14:51:11 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-22 07:10:26 +0900
commit07b4878c52b88c858a1bd80f773456ab85495559 (patch)
treea4929946e400e4544a87e59f32deea26d2bc42ff /uemis-downloader.c
parent569cfe1bc8849cc23d68de8de4712ee4cdba4337 (diff)
downloadsubsurface-07b4878c52b88c858a1bd80f773456ab85495559.tar.gz
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>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index b79890599..2a6e5178c 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -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++;
}