Hi William L., Thanks for your answer.
On Mon, Jan 13, 2020 at 04:00:53PM +0100, William Lallemand wrote: > I understand that you were trying to remove opendir, which is good idea. > However, I find it kind of confusing: if ssl_sock_load_ckchs() returns an > error, this error will be added to the "unable to scan directory" message, and > at this point it is not trying to scan a directory anymore. > > However, there is already a call to stat(), we could probably skip the > call to opendir() by checking S_IFDIR in the stat structure. True, I probably over engineered it, I've sent v2, which is simpler. Thanks, -- William