Opened 21 years ago
Last modified 12 years ago
#691 closed defect
nALFS uses getpwuid() to locate rcfile — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | |
Component: | nALFS - Front End (GUI) | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
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.