On lördagen den 26 mars 2011, Kurt Roeckx wrote: > On Sat, Mar 26, 2011 at 08:29:11PM +0100, Magnus Holmgren wrote: > > Hi! > > > > Some of the tests of lsh-utils failed on hppa, alpha, and s390 > > (https://buildd.debian.org/status/package.php?p=lsh-utils) after I > > enabled them, the reason being that they expect $USER or $LOGNAME to be > > set. Is there some particular reason that this is the case (shouldn't > > one expect these variables to be set?) or was the environment merely > > cleaned a bit too thoroughly? > > The behaviour should be the same on all buildds since they should > all be using the same software. I've tried it manually and > both are set.
Strange. What could be the problem then? The code looks something like this:
#define USER_NAME_FROM_ENV(s) do { \
(s) = getenv("LOGNAME"); \
if (!(s)) \
(s) = getenv("USER"); \
} while (0)
...
USER_NAME_FROM_ENV(self->user);
...
if (!options->user)
{
argp_error(state, "No user name given. Use the -l option, or set
LOGNAME
in the environment.");
break;
}
--
Magnus Holmgren [email protected]
Debian Developer
signature.asc
Description: This is a digitally signed message part.

