From: "Todd C. Miller" Subject: Re: capsicum work: add fd field to got_repository, change got_packidx To: Stefan Sperling Cc: Yang Zhong , gameoftrees@openbsd.org Date: Tue, 15 Dec 2020 15:33:11 -0700 On Tue, 15 Dec 2020 23:27:55 +0100, Stefan Sperling wrote: > Sure. It seems like we'll more flexibility when building error messages > and this is probably the easiest way to go about it. > > This adds an errno-specific interface, meaning it always appends the > result of strerror(3) to the provided format string. I wouldn't make buf static since it doesn't need to exist after the function returns. Otherwise OK. - todd