Re: [gtk+-2.6.7] configure problem



> ...
> 
> The output is just the 3 lines of shell names in /etc/shells. So I gather that it can't be used to determine the current shell one is using.
> 
> But your advice of looking into the file /etc/passwd is good and useful.
> 
> Thank you very much,
> 
> Regards,
> Xu Qiang
> 
> 

MMmm ... you are right, getusershell() will not give you the shell you
are using ...
In this case, you should check "man getpwnam".  This API will
parse /etc/passwd for you.

Regards,
KC
kccheng LinuxDAQ-Labs org



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