Index | Thread | Search

From:
Todd C. Miller <millert@openbsd.org>
Subject:
Re: usr.bin/write hardening & cleanup
To:
Marc Espie <marc.espie.openbsd@gmail.com>
Cc:
tech@openbsd.org
Date:
Sat, 13 Jun 2026 16:52:04 -0600

Download raw body.

Thread
On Fri, 12 Jun 2026 11:55:46 +0200, Marc Espie wrote:

> So, in summary
> - pledge on start, restricting to stdio later on
> - annotate done as __dead
> - remove the return 0 after done in main, since compiler is now happy
> - factor the code that removes /dev/ from  /dev/ttyp3 consistently
> - wrap the PUTC macro into do {} while (0) so there's no extra empty statemen
> t
> - ditch ctime and format print exactly the string we want.
> - pass ttyl as size_t since that's we have.

This looks reasonable to me.  Any objections?

 - todd