After reading the refs on submitting bug reports I believe this is the
correct way to present it as it's probably a design issue and may be
subjective as I know I do not know the whole system. So I will generalize
in the hopes that I'm wrong.

Everything starts with "my application"...
- chroot("some existing folder")
- mygetpwnam_r()  to get the current user which should be userid=0 or root.

when mygetpwnam_r runs it returns an error that the user could not be found.
I created an etc directory and put a passwd file in there with a record for
the root/0. But that returned the same error.

So I copied the /etc/pwd.db to my etc folder... and it worked.
One thing I thought... it might be useful to create an empty file but that
was not helpful. (pwd_mkdb)






*--Richard Bucker *

Reply via email to