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

From:
"Todd C. Miller" <millert@openbsd.org>
Subject:
Re: capsicum work: add fd field to got_repository, change got_packidx
To:
Stefan Sperling <stsp@stsp.name>
Cc:
Yang Zhong <yzhong@freebsdfoundation.org>, gameoftrees@openbsd.org
Date:
Tue, 15 Dec 2020 14:16:33 -0700

Download raw body.

Thread
On Tue, 15 Dec 2020 22:02:46 +0100, Stefan Sperling wrote:

> I'm afraid we'll end up with even more got_error functions to cover
> combinations of the number of path components (separeated by /) and
> error message components (separated by :).

Why not just add a variant that takes a format string and a variable
number of args?  It will end up in snprintf (well, vsnprintf) either
way.  You could even use that to replaces calls to got_error_from_errno2()
and got_error_from_errno3() if desired.

 - todd