From e8f56d3294b552ddd1459914f1d3ce4ad9bf2c61 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 18 Aug 2010 12:56:53 -0700 Subject: [PATCH] auth: fix skipping of ~/ if $HOME subst fails We were breaking out of the loop entirely, and failing to check the rest of the items in the path list. Doh! --- src/auth/KeyRing.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth/KeyRing.cc b/src/auth/KeyRing.cc index fdf15bc9a8f10..025cf4cba227a 100644 --- a/src/auth/KeyRing.cc +++ b/src/auth/KeyRing.cc @@ -45,7 +45,8 @@ bool KeyRing::load(const char *filename_list) const char *home = getenv("HOME"); if (home) p->replace(pos, 1, getenv("HOME")); - else break; //skip, we couldn't correct it + else + continue; // skip this item, we couldn't do the substitution } if (bl.read_file(p->c_str(), true) == 0) { -- 2.39.5