From 74aa8456554ecdc06c6964556556073e0a625c8e Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sat, 30 Jan 1999 04:36:47 +0000 Subject: [PATCH] go ahead and print "none" and "disable" cachemgr passwords --- src/cache_cf.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); } -- 2.47.3