[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#345168: nscd in sarge creates sockets in wrong location



# apt-get install nscd
# ps -ef|grep nscd
root      4603     1  0 08:25 ?        00:00:00 /usr/sbin/nscd
root      4620  4418  0 08:27 pts/3    00:00:00 grep nscd

strace ping -c 1 www.google.com > /tmp/strace 2>&1

relevant portion of /tmp/strace:

connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 4
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(4, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4)                                = 0

nscd socket is created at /var/run/.nscd_socket rather
than /var/run/nscd/socket

creating a symlink at /var/run/nscd/socket to /var/run/.nscd_socket
resolves the problem

this issue is resolved in unstable, it should either be fixed 
in stable or noted during the installation

-Jesse



Reply to: