Todd C. Miller <todd.mil...@sudo.ws> wrote: > > Use dprintf for the DEFAULT_MESG string instead of the more awkward > > write+strlen combo. > > I don't object to this but I also wouldn't object to rewriting > nologin.c to use stdio.
I wonder if nologin was written in this ignore-errors-from-write style, such that if a tty stops behaving right nologin can reach termination reliably rather than getting stuck