On Tue, Sep 08 2020, Richard Bucker <[email protected]> wrote:
> 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 don't understand why you expect this to work out of the box, for any
chroot directory under your control.  If you need to look up a passwd
entry you should probably do that before calling chroot(2).

This doesn't warrant a mail to bugs@ IMO.  Maybe ask misc@ next time if
you're unsure.

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to