Opened 21 years ago

Closed 12 years ago

#691 closed defect (wontfix)

nALFS uses getpwuid() to locate rcfile — at Version 8

Reported by: kpfleming@… Owned by: alfs-log@…
Priority: high Milestone:
Component: nALFS - Front End (GUI) Version: SVN
Severity: normal Keywords:
Cc:

Description (last modified by Pierre Labastie)

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 neven@…, 21 years ago

In addition, support reading a system-wide configuration file (from /etc ?).

comment:2 by kpfleming@…, 21 years ago

Owner: changed from alfs-log@… to kpfleming@…
Status: newassigned

comment:3 by kpfleming@…, 21 years ago

Resolution: fixed
Status: assignedclosed

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 neven@…, 21 years ago

Priority: normalhigh
Resolution: fixed
Status: closedreopened

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:5 by kpfleming@…, 21 years ago

Agreed, the problem is not solved yet.

comment:6 by jwrober@…, 20 years ago

Version: CVSSVN

comment:7 by jamie@…, 19 years ago

Owner: changed from kpfleming@… to alfs-log@…
Status: reopenednew

comment:8 by Pierre Labastie, 12 years ago

Description: modified (diff)
Resolution: wontfix
Status: newclosed

ALFS is not maintained anymore

Note: See TracTickets for help on using tickets.