On Mon, Sep 17, 2018 at 11:14:40AM -0600, Todd C. Miller wrote: > Two more pontential places where user_from_uid(3) makes sense. > These were in my large diff but got lost chopping it up into smaller > pieces.
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.