Bug 2717 - leading spaces break detecting cache location
Summary: leading spaces break detecting cache location
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: squid (show other bugs)
Version: unstable
Hardware: all Linux
: P4 minor
Assignee: Kostya Timoshenko
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-01 19:05 MSD by Andy Gorev
Modified: 2004-08-17 10:26 MSD (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Gorev 2003-07-01 19:05:34 MSD
Без патча скрипт никогда не детектит расположение кэша. Опция -е излишняя 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 Andy Gorev 2004-05-20 13:43:49 MSD
.