From: "Todd C. Miller" Subject: Re: Got relies on non-POSIX basename(3), dirname(3) To: Stefan Sperling Cc: Christian Weisgerber , gameoftrees@openbsd.org Date: Fri, 18 Sep 2020 13:00:56 -0600 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