forked from lda/telodendria
Fix chroot() logic on non-OpenBSD platforms.
This commit is contained in:
parent
55a49e418f
commit
640e127ce5
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ main(int argc, char **argv)
|
||||||
if (getuid() == 0)
|
if (getuid() == 0)
|
||||||
{
|
{
|
||||||
#ifndef __OpenBSD__
|
#ifndef __OpenBSD__
|
||||||
if (chroot(tConfig->chroot) == 0)
|
if (chroot(".") == 0)
|
||||||
{
|
{
|
||||||
Log(lc, LOG_DEBUG, "Changed the root directory to: %s.", tConfig->chroot);
|
Log(lc, LOG_DEBUG, "Changed the root directory to: %s.", tConfig->chroot);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue