Re: [gtk+-2.6.7] configure problem
- From: KC <kcc1967 gmail com>
- To: Xu Qiang <Qiang Xu fujixerox com>
- Cc: gtk-list gnome org
- Subject: Re: [gtk+-2.6.7] configure problem
- Date: Fri, 22 Apr 2005 16:08:34 +0800
> ...
>
> 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]