Uemis patch

Guido Lerch guido.lerch at gmail.com
Wed Oct 21 06:42:41 PDT 2015


2015-10-21 15:40 GMT+02:00 Lubomir I. Ivanov <neolit123 at gmail.com>:

> On 21 October 2015 at 16:21, Guido Lerch <guido.lerch at gmail.com> wrote:
> > fixing an issue with loading dives on Ubuntu.
> >
> > it seems that this code does not resolve the file type
> > correctly. it returns DT_REG also on ANSx.TXT files.
> >
> > Tested the fix on Ubuntu 14.04 and Mac OSX 10.9,
> > not tested on El Captain but I assume no issues there.
> >
> > This fix affects Uemis only.
> >
> > - if (entry->d_type == DT_REG) /* If the entry is a regular file */
> > + if (strstr(entry->d_name, ".TXT")) /* If the entry is a regular file */
>
> are the extensions always in uppercase?
>
I have never seen this otherwise but maybe I do a lower, just to be sure.

>
> lubomir
> --
>



-- 
Best regards,
Guido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20151021/54b8a401/attachment-0001.html>


More information about the subsurface mailing list