<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-10-21 15:40 GMT+02:00 Lubomir I. Ivanov <span dir="ltr"><<a href="mailto:neolit123@gmail.com" target="_blank">neolit123@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 21 October 2015 at 16:21, Guido Lerch <<a href="mailto:guido.lerch@gmail.com">guido.lerch@gmail.com</a>> wrote:<br>
> fixing an issue with loading dives on Ubuntu.<br>
><br>
> it seems that this code does not resolve the file type<br>
> correctly. it returns DT_REG also on ANSx.TXT files.<br>
><br>
> Tested the fix on Ubuntu 14.04 and Mac OSX 10.9,<br>
> not tested on El Captain but I assume no issues there.<br>
><br>
> This fix affects Uemis only.<br>
><br>
</span>> - if (entry->d_type == DT_REG) /* If the entry is a regular file */<br>
> + if (strstr(entry->d_name, ".TXT")) /* If the entry is a regular file */<br>
<br>
are the extensions always in uppercase?<br></blockquote><div>I have never seen this otherwise but maybe I do a lower, just to be sure. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
lubomir<br>
--<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Best regards,<div>Guido</div></div></div>
</div></div>