#3019: Shadow-4.1.5
------------------------------------------+---------------------------------
Reporter: matthew@… | Owner: matthew@…
Type: enhancement | Status: assigned
Priority: normal | Milestone: 7.1
Component: Book | Version: SVN
Severity: normal | Keywords:
------------------------------------------+---------------------------------
Comment(by bdubbs@…):
There seems to be two errors here. nscd will return an unconditional
error if there is no /etc/nscd.conf file right at the beginning. If
/etc/nscd.conf does exist, but the table does not, then nscd returns an
error of EINVAL.
The new shadow routine does not differentiate between these errors.
Actually, I think the shadow routine should test if nscd is running and,
if not, just return from the routine.
I tried running nscd and it failed because /var/run/nscd/ did not exist,
but it runs after creating that directory.
The only thing that shadow really needs to do test /var/run/nscd/nscd.pid
for existence at the beginning of the nscd_flush_cache function.
if ( access( "/var/run/nscd/nscd.pid", F_OK ) ) return 1;
Otherwise, it can do what it is doing.
Of course, we could just use --without-nscd, but that is less flexible.
On the other hand, we build shadow now without auditing support, pam, acl,
attr, or skey.
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3019#comment:4>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page