X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fngircd%2Fngircd.c;h=f28ff05bcfb778065dc99a50e7459472eee8a68f;hb=88c3d4896af6c09de5d360d93ad8b02793aeb234;hp=60d15a1f8a7be1afe807d192f52223e4dffac50a;hpb=7b6ef3bc8eef8a084bc77155e4cd64a35198aad9;p=ngircd-alex.git diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c index 60d15a1f..f28ff05b 100644 --- a/src/ngircd/ngircd.c +++ b/src/ngircd/ngircd.c @@ -642,12 +642,10 @@ NGIRCd_Init(bool NGIRCd_NoDaemon) } if (chroot(Conf_Chroot) != 0) { - if (errno != EPERM) { - Log(LOG_ERR, - "Can't change root directory to \"%s\": %s", - Conf_Chroot, strerror(errno)); - goto out; - } + Log(LOG_ERR, + "Can't change root directory to \"%s\": %s", + Conf_Chroot, strerror(errno)); + goto out; } else { chrooted = true; Log(LOG_INFO,