]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
go ahead and print "none" and "disable" cachemgr passwords
authorwessels <>
Sat, 30 Jan 1999 04:36:47 +0000 (04:36 +0000)
committerwessels <>
Sat, 30 Jan 1999 04:36:47 +0000 (04:36 +0000)
src/cache_cf.cc

index c1adaffefdb6a1be964cf5e51fdf632e7845eab2..f25aca9b71812b3ac7ab66819b0623eb105127de 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.322 1999/01/24 05:27:36 wessels Exp $
+ * $Id: cache_cf.cc,v 1.323 1999/01/29 21:36:47 wessels Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -862,7 +862,10 @@ dump_cachemgrpasswd(StoreEntry * entry, const char *name, cachemgr_passwd * list
 {
     wordlist *w;
     while (list != NULL) {
-       storeAppendPrintf(entry, "%s XXXXXXXXXX", name);
+       if (strcmp(list->passwd, "none") && strcmp(list->passwd, "disable"))
+           storeAppendPrintf(entry, "%s XXXXXXXXXX", name);
+       else
+           storeAppendPrintf(entry, "%s %s", name, list->passwd);
        for (w = list->actions; w != NULL; w = w->next) {
            storeAppendPrintf(entry, " %s", w->key);
        }