Re: [hackers] [sbase] libutil/recurse: Simplify adding trailing slash || Michael Forney

From: Laslo Hunhold <dev_AT_frign.de>
Date: Tue, 23 Jun 2020 22:24:14 +0200

On Tue, 23 Jun 2020 11:43:41 -0700
Michael Forney <mforney_AT_mforney.org> wrote:

Dear Michael,

> I don't think it will be a problem. We are not interested in the path
> with an appended trailing slash, it is just an intermediate step in
> constructing the path to the child. When we add the final path
> component, we necessarily check that the buffer has enough space for
> the directory entry name and nul-terminator.

thanks for your response! Ah that makes sense. It looked more drastic
in the diff.

With best regards

Laslo
Received on Tue Jun 23 2020 - 22:24:14 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 23 2020 - 22:24:36 CEST