Config file include order bug?

Sven Hartge sven at svenhartge.de
Thu Jul 16 14:33:01 CEST 2020


On 16.07.20 14:29, Alan DeKok wrote:
> On Jul 16, 2020, at 5:11 AM, Sven Hartge <sven at svenhartge.de> wrote:
>> On 15.07.20 17:54, Alan DeKok wrote:

>>>   Sure.  The larger issue is that I tested it on OSX, and scandir() returns *duplicates*.  i.e. it seems to randomly return the same file multiple times.  So that's useless.
>>
>> Hmm. When was the last time you tested this?
> 
>   5 minutes before I replied.

That is ugly. And interesting.

>> I don't doubt your findings but a colleague and I were not able to reproduce this on a current OSX system, no duplicate entries could be provoked.
> 
>   I sorted the entries using the alphasort() function.  It was pretty definitive.  One directory had one file in it, and scandir() returned an array of 3 entries, all of the same filename.
> 
>   For reading mods-enabled/, it randomly returned duplicates.
> 
>   It's pretty difficult to get scandir() wrong, or to use it wrong.  If the directory has one file and scandir() returns 3, well, that's a problem.

Out if interest: can you share your test-code? I'd like to experiment
with it.

Grüße,
Sven.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20200716/8043e14e/attachment.sig>


More information about the Freeradius-Users mailing list