This is probably the same as PR 51158: https://gnats.netbsd.org/51158
On Thu, Dec 19, 2019 at 08:24:08AM -0600, John D. Baker wrote:
> On Mon, 16 Dec 2019, John D. Baker wrote:
>
> > $ sudo ls
> > Password:
> > sudo: setrlimit(3): Invalid argument
> > [...]
> >
> > So far, it seems not to prevent anything from working, but is a bit
> > worrying.
>
> Recent changes to "security/sudo":
>
> http://mail-index.NetBSD.org/pkgsrc-changes/2019/12/18/msg202726.html
>
> seem to address this, but the only visible effect on netbsd-8/amd64 is
> to print the name of the resource (rather than a number), but still
> incurring an "Invalid argument warning:
>
> $ sudo ls
> sudo: setrlimit(RLIMIT_STACK): Invalid argument
>
> As mentioned in a later portion of this thread, the warning seems to
> appear randomly. Sometimes it prints, other times it does not.
>
> --
> |/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
> |\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
> | X No HTML/proprietary data in email. BSD just sits there and works!
> |/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645