"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
"Todd C. Miller" <Todd.Miller@sudo.ws>
Subject:
Re: Got relies on non-POSIX basename(3), dirname(3)
To:
Stefan Sperling <stsp@stsp.name>
Cc:
Christian Weisgerber <naddy@mips.inka.de>, gameoftrees@openbsd.org
Date:
Fri, 18 Sep 2020 13:00:56 -0600

Download raw body.

Thread
On Fri, 18 Sep 2020 20:50:53 +0200, Stefan Sperling wrote:

> What would this do with input like "/foo///" ?
>
> Such input probably won't happen in this particular case.
> But I'd rather use an idiomatic API that understands path semantics
> of data contained in the string.

Then you probably want something with basename(3)-like semantics.

 - todd