From cb69eafd41b05acdcb561bd0f4f0b7750e30154d Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 23 Jun 2005 14:09:04 +0000 Subject: [PATCH] rpmInitMacrofileGlob: expand argument before processing --- rpmio/macro.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpmio/macro.c b/rpmio/macro.c index fe8aa25..1259ac2 100644 --- a/rpmio/macro.c +++ b/rpmio/macro.c @@ -1644,8 +1644,9 @@ rpmInitMacrofile (const char *macrofile) } static void -rpmInitMacrofileGlob (const char *macrofile) +rpmInitMacrofileGlob (const char *arg) { + const char *macrofile = rpmExpand (arg, NULL); int is_local = strchr (macrofile, '~') ? 1 : 0; if (is_local || strchr (macrofile, '*')) @@ -1681,6 +1682,8 @@ rpmInitMacrofileGlob (const char *macrofile) } else rpmInitMacrofile (macrofile); + + _free (macrofile); } void