[ALFS Trac] #691: nALFS uses getpwuid() to locate rcfile

ALFS Trac trac at linuxfromscratch.org
Thu Mar 21 10:04:02 PDT 2013


#691: nALFS uses getpwuid() to locate rcfile
-------------------------------------+-------------------------
 Reporter:  kpfleming@…              |       Owner:  alfs-log@…
     Type:  defect                   |      Status:  closed
 Priority:  high                     |   Milestone:
Component:  nALFS - Front End (GUI)  |     Version:  SVN
 Severity:  normal                   |  Resolution:  wontfix
 Keywords:                           |
-------------------------------------+-------------------------
Changes (by pierre):

 * status:  new => closed
 * resolution:   => wontfix


Old description:

> nALFS defaults to looking for nALFSrc (ot whatever name the user chosen)
> in the
> user's home directory. To do this, it uses getpwuid() to get the home
> directory
> path. When nALFS is built as a static executable, using a recent glibc as
> the C
> library, this results in the nALFS executable still needing to have the
> libnss
> modules from that _same_ version of glibc around at runtime, or the
> getpwuid()
> call will fail. This, in essence, makes nALFS not completely a static
> binary in
> that case.
>
> Some alternative method of locating the rcfile should be created, so that
> the
> "home directory" search can be disabled for a static build. Something as
> simple
> as an --rcfile argument on the command line would probably suffice.

New description:

 nALFS defaults to looking for nALFSrc (ot whatever name the user chosen)
 in the
 user's home directory. To do this, it uses getpwuid() to get the home
 directory
 path. When nALFS is built as a static executable, using a recent glibc as
 the C
 library, this results in the nALFS executable still needing to have the
 libnss
 modules from that _same_ version of glibc around at runtime, or the
 getpwuid()
 call will fail. This, in essence, makes nALFS not completely a static
 binary in
 that case.

 Some alternative method of locating the rcfile should be created, so that
 the
 "home directory" search can be disabled for a static build. Something as
 simple
 as an --rcfile argument on the command line would probably suffice.

--

Comment:

 ALFS is not maintained anymore

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/alfs/ticket/691#comment:8>
ALFS Trac <http://wiki.linuxfromscratch.org/alfs/>
Automated Linux From Scratch



More information about the alfs-log mailing list