On Tue, 18 Sep 2018 03:30:39 +0200, Theo Buehler wrote:

> I don't mind the slight change of behavior in write(1) in an unlikely
> branch, but how about doing this instead?
>
>               if ((login = user_from_uid(myuid, 1)) == NULL)
>                       login = "???";
>
> either way ok.

The "???" is not terribly useful.  I think it is better to use the
uid of the user writing to the tty.  Either way, this is a code
path unlikely to be exercised.

 - todd

Reply via email to