len = snprintf(pidbuf, sizeof pidbuf, "%ld\n", (long)pid);
if (len < 0 || len >= (int)sizeof pidbuf) {
len = snprintf(pidbuf, sizeof pidbuf, "%ld\n", (long)pid);
if (len < 0 || len >= (int)sizeof pidbuf) {
- 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;