On Mon, Aug 18, 2008 at 1:35 AM, Alexander Farber <[EMAIL PROTECTED]> wrote: > On Mon, Aug 18, 2008 at 12:11 AM, Philip Guenther <[EMAIL PROTECTED]> wrote: >> This question doesn't really have anything to do with OpenBSD. > > Thanks, but I think it has to do with OpenBSD, because > the question is about implementation at this platform.
<sigh> Did you read the source? Did you see any "#ifdef __OpenBSD__" conditionals or other differences in the relevant chunks of code between the source in the OpenBSD repository and the portable/official source? I sure didn't see any. > I'll try using following for now: > > drop_root() if ($< == 0 or $> == 0); If you're going to check for both $> and $< being zero, then you should stick "$> = 0;" into the function, before the chroot(). That's not OpenBSD specific, so I'm sure you see why. Philip Guenther