Subject: Re: bug#78416: [PATCH] * src/lread.c (get-load-suffixes): Avoid module suffix with compressed suffix

From: Eli Zaretskii <[email-masked]>
Date: Sat, 17 May 2025 09:57:47 +0300

> From: Lin Sun <[email-masked]>
> CC: "[email-masked]" <[email-masked]>, Po Lu
> 	<[email-masked]>
> Date: Sat, 17 May 2025 00:01:49 +0000
> 
> Update the patch towards the previous review comments. 

Thanks, but I think you've misunderstood the comments.  We should only
ignore the ".gz" suffix.  Ignoring other suffixes would be a potential
regression, because there's nothing wrong in trying to load a file
called, say, foobar.so.abc.  The current code supports that, and I see
no reason to drop that support.

The ".gz" suffix gets in the way because dynamic loaders cannot load
such compressed shared libraries.

So the condition for not appending a suffix from
load-file-rep-suffixes should also test the value of 'ext', and only
refuse to append it if it compares equal with ".gz".