Hello, I have a small problem with nscd and the use of getpw functions on my Debian boxes.
Actually, nscd doesn't seem to cache any of my requests for some programs... even for the simplest ones... for example that one : #include <unistd.h> #include <stdio.h> #include <sys/types.h> #include <pwd.h> int main(int ac, char **av) { struct passwd *test; while (1) { test = getpwnam("root"); printf("%s %s\n", test->pw_name, test->pw_passwd); } } I'm launching nscd with the debug flag "nscd -d", and nothing appears to enter the nscd cache when launching this small program... Although when launching "core" utils like "ls" or "who", and so on..... I can see the debug that prooves that they do check the cache each time.... I do not really understand where it could come from, since "ls" seems to use getpwnam() too... Anyone could help please ? Thanks a lot, Ugo PARSI