]> git.pld-linux.org Git - packages/squid.git/blob - squid-2.5.STABLE10-chroot_dir.patch
- removed outdated squid patches, they're all in sources
[packages/squid.git] / squid-2.5.STABLE10-chroot_dir.patch
1 Index: squid/src/cache_cf.c
2 diff -c squid/src/cache_cf.c:1.396.2.28 squid/src/cache_cf.c:1.396.2.29
3 *** squid/src/cache_cf.c:1.396.2.28     Sun Jun 19 03:36:33 2005
4 --- squid/src/cache_cf.c        Thu Sep  1 16:04:51 2005
5 ***************
6 *** 2545,2551 ****
7       struct stat sb;
8       char pathbuf[BUFSIZ];
9       assert(path != NULL);
10 !     if (Config.chroot_dir) {
11         snprintf(pathbuf, BUFSIZ, "%s/%s", Config.chroot_dir, path);
12         path = pathbuf;
13       }
14 --- 2545,2551 ----
15       struct stat sb;
16       char pathbuf[BUFSIZ];
17       assert(path != NULL);
18 !     if (Config.chroot_dir && (geteuid() == 0)) {
19         snprintf(pathbuf, BUFSIZ, "%s/%s", Config.chroot_dir, path);
20         path = pathbuf;
21       }
This page took 0.027129 seconds and 3 git commands to generate.