coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

test-getlogin false failure in non login shells


From: Pádraig Brady
Subject: test-getlogin false failure in non login shells
Date: Tue, 13 May 2014 19:38:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 05/13/2014 07:27 PM, Guilherme de Almeida Suckevicz wrote:
> Hello!
> 
> I would like to ask if this gnulib test is right.
> I will reproduce some steps to arrive there and explain what is happening!
> 
> I have a virtual machine with Fedora 20 installed, so logging with ssh as
> root.
> 
> [root@fedoralab ~]# logname
> root
> 
> [root@fedoralab ~]# su - flab
> [flab@fedoralab ~]$ logname
> root
> 
> [flab@fedoralab ~]$ cd coreutils/build
> [flab@fedoralab build]$ make
> 
> ... a lot of output ...
> 
> [flab@fedoralab build]$ make check
> 
> ... a lot of output ...
> 
> It fails on the test-getlogin.c!
> Exactly on this part:
> 
>       ASSERT (strcmp (buf, name) == 0);
> 
> Because the buf content is the result of the getlogin function, this is,
> the owner of the controlling terminal, and the content of name, that is the
> USER or LOGNAME environment variable that is set by the shell, like they
> are differentthe test fails.
> 
> 
> If it is really an error and if is possible, I would like to help and make
> the changes!

Yes that doesn't look right.
I noticed this too when running: sudo make check
It would be good to get that fixed up.

thanks!
Pádraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]