Uemis patch

Guido Lerch guido.lerch at gmail.com
Wed Oct 21 06:55:47 PDT 2015


Don't think it's a problem but to be sure I am checking on .TXT and .txt
now.

2015-10-21 15:42 GMT+02:00 Guido Lerch <guido.lerch at gmail.com>:

>
>
> 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
>



-- 
Best regards,
Guido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20151021/391a391b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Uemis-fix-for-Ubuntu.patch
Type: application/octet-stream
Size: 998 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20151021/391a391b/attachment.obj>


More information about the subsurface mailing list