You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-proxy/privoxy/files/privoxy-3.0.28-chdir.patch

16 lines
426 B

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) */