Fix chroot() logic on non-OpenBSD platforms.

This commit is contained in:
Jordan Bancino 2022-08-24 16:10:34 -04:00
parent 55a49e418f
commit 640e127ce5

View file

@ -310,7 +310,7 @@ main(int argc, char **argv)
if (getuid() == 0)
{
#ifndef __OpenBSD__
if (chroot(tConfig->chroot) == 0)
if (chroot(".") == 0)
{
Log(lc, LOG_DEBUG, "Changed the root directory to: %s.", tConfig->chroot);
}