]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix rm command
authorwessels <>
Sun, 1 Dec 1996 14:33:43 +0000 (14:33 +0000)
committerwessels <>
Sun, 1 Dec 1996 14:33:43 +0000 (14:33 +0000)
src/store.cc

index 0364a88e04b9fb4cd327b8251b65abcbd820b44b..af5b4b9f3e99ff21a71153c3c571f26c90bbb90f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.171 1996/11/30 22:00:46 wessels Exp $
+ * $Id: store.cc,v 1.172 1996/12/01 07:33:43 wessels Exp $
  *
  * DEBUG: section 20    Storeage Manager
  * AUTHOR: Harvest Derived
@@ -2322,11 +2322,8 @@ storeVerifySwapDirs(int clean)
        }
        if (clean && opt_unlink_on_reload) {
            debug(20, 1, "storeVerifySwapDirs: Zapping all objects on disk storage.\n");
-           /* This could be dangerous, second copy of cache can destroy
-            * the existing swap files of the previous cache. We may
-            * use rc file do it. */
            cmdbuf = xcalloc(1, BUFSIZ);
-           sprintf(cmdbuf, "cd %s; /bin/rm -rf log [0-9][0-9]", path);
+           sprintf(cmdbuf, "cd %s; /bin/rm -rf log 0[0-9A-F]", path);
            debug(20, 1, "storeVerifySwapDirs: Running '%s'\n", cmdbuf);
            system(cmdbuf);     /* XXX should avoid system(3) */
            xfree(cmdbuf);