Opened 21 years ago
Closed 12 years ago
#691 closed defect (wontfix)
nALFS uses getpwuid() to locate rcfile — at Version 8
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | |
Component: | nALFS - Front End (GUI) | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
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.
Change History (8)
comment:1 by , 21 years ago
comment:2 by , 21 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 21 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
changes committed to CVS to support /etc/nALFSrc and --rcfile parameter. if --rcfile is specified, neither /etc/nALFSrc nor the "default" rcfile are read, so users who build nALFS static can avoid the getpwuid() call by specifying --rcfile directly
comment:4 by , 21 years ago
Priority: | normal → high |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
I might be missing something, but I don't see what stops all read_*rc_* functions in main() to be called. So ~/.nALFSrc is still read.
Command-line options would have to be parsed first, no matter what.
I'll reopen the bug and we'll give it some more though after 1.2.0.
comment:6 by , 20 years ago
Version: | CVS → SVN |
---|
comment:7 by , 19 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
comment:8 by , 12 years ago
Description: | modified (diff) |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
ALFS is not maintained anymore
In addition, support reading a system-wide configuration file (from /etc ?).