Bug 2717 - leading spaces break detecting cache location
: leading spaces break detecting cache location
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/squid)
: unstable
: all Linux
: P4 minor
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2003-07-01 19:05 by
Modified: 2004-08-17 10:26 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-07-01 19:05:34
Без патча скрипт никогда не детектит расположение кэша. Опция -е излишняя IMHO,
т.к. без нее тоже работает.

@@ -48,7 +48,7 @@
        # determine which one is the cache_swap directory
        CACHE_SWAP=`sed -e \'s/#.*//g\' /etc/squid/squid.conf | \\
                    grep cache_dir | sed -e \'s/cache_dir//\' | \\
-                   cut -d \' \' -f 2`
+                   sed -e \'s/^ *//g\' | cut -d \' \' -f 2`
        [ -z \"$CACHE_SWAP\" ] && CACHE_SWAP=/var/spool/squid

         for adir in $CACHE_SWAP; do
---

---
------- Comment #1 From 2004-05-20 13:43:49 -------
.