Le 2023-11-23 à 11 h 20, Steve McIntyre a écrit :

AFAICS in a non-interactive environment, USER isn't required to be set
but LOGNAME is; see

   https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html

Alternatively, the tets should probably be calling get(e)uid and
getpwent() rather than relying on the environment here.


Indeed, I also had the same conclusion using other documentation.

But then, if LOGNAME is mandatory, I suppose it would be better to use $LOGNAME alone instead of the condition.

(I'm not refusing your patch, I just try to see if there's a better and cleaner way to fix it)

I'll open a bug upstream to get their feedback on this

/Nicolas

Reply via email to