Uemis patch

Lubomir I. Ivanov neolit123 at gmail.com
Wed Oct 21 06:40:06 PDT 2015


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?

lubomir
--


More information about the subsurface mailing list