]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 2066: squid does not do chdir() after chroot()
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 4 Jun 2013 04:09:31 +0000 (22:09 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 4 Jun 2013 04:09:31 +0000 (22:09 -0600)
commit133906f560762d68bc2c8eb677584dcd4ccae8f2
tree3e57b21b0fb2ee9e5b09eb9f1775b84269bdb77d
parent3e3aefda6e61d0dc48665257e93cccc50ba5800a
Bug 2066: squid does not do chdir() after chroot()

The earlier workaround applied only fixed 1 of the 3 places performing
chroot().
 This makes chroot and chdir integral parts of setting up Squids running
directory and alters teh chroot() calls to be mainSetCwnd() calls. Which
fixes several potential problems with core dumps from squid -z or -k
executions ending up in unexpected locations, regardless of whether
chroot() and coredump_dir are configured.

 Detected by Coverity Scan. Issue 740335.
src/main.cc