diff '--color=auto' -Naurd privoxy-3.0.28-stable.orig/jcc.c privoxy-3.0.28-stable/jcc.c --- privoxy-3.0.28-stable.orig/jcc.c 2018-12-30 21:40:13.000000000 +0300 +++ privoxy-3.0.28-stable/jcc.c 2020-07-11 14:43:39.851143843 +0300 @@ -4013,7 +4013,10 @@ } #endif - chdir("/"); + if (chdir("/")) + { + log_error(LOG_LEVEL_FATAL, "Cannot chdir /"); + } } /* -END- if (daemon_mode) */