From: wessels <> Date: Sat, 30 Jan 1999 04:36:47 +0000 (+0000) Subject: go ahead and print "none" and "disable" cachemgr passwords X-Git-Tag: SQUID_3_0_PRE1~2324 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74aa8456554ecdc06c6964556556073e0a625c8e;p=thirdparty%2Fsquid.git go ahead and print "none" and "disable" cachemgr passwords --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index c1adaffefd..f25aca9b71 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -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); }