On Thu, 2007-12-06 at 12:36 +0200, Yedidyah Bar-David wrote: > On Thu, Dec 06, 2007 at 03:30:42AM +0200, Oded Arbel wrote: > > # getent passwd root > > <no output here> > > # ls -l /etc/passwd > > -rw-r--r-- 1 root root ... /etc/passwd > > # getent passwd root > > root:x:0:0:root:/root:/bin/bash > > I really have no idea, but: > 1. You might get a clue from diffing the output of > strace -f -o outfile getent passwd root > before and after accessing /etc/passwd.
I tried that with xinetd (which had problems accessing /etc/protocols). Because I'm not in front of the computer getting it to much the boot up process by not doing the work-around for passwd is not an option. But the xinetd test came back with some interesting results: The first call that is interesting is of course the open() for /etc/protocols. In the second test (after I did ls /etc/protocols) it looks normal: open("/etc/protocols", O_RDONLY|0x80000 /* O_??? */) = 8 but in the first test is looks like this: open("/etc/protocols", O_RDONLY|0x80000 /* O_??? */) = -530 Reading man 2 open, it says that open() should return -1 in case of an error. I'm still looking as to what -530 means, but I've yet to find anything on the web. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]