On 05/22/2014 05:40 PM, Eric Blake wrote: >> /* getlogin_r() fails when stdin is not connected to a tty. */ >> - ASSERT (err == ENOTTY >> + ASSERT (errno == ENOTTY >> || errno == EINVAL /* seen on Linux/SPARC */ >> || errno == ENXIO > > So this should actually be checking 'err', not 'errno', for all three > instances.
Ok I was reading third party man pages rather than the spec. I'll fix in a follow up (and follow my own advice and delay pushing patches a while to allow for review). thanks! Pádraig.