rpmio/macro.c (rpmInitMacrofileGlob): require last character to be alnum

Rationale: I use 'set patchmode=-' in my ~/.vimrc.
This commit is contained in:
Alexey Tourbin 2007-03-19 12:24:20 +03:00
parent 434d4daed5
commit 4d8a11acb6

View File

@ -1690,8 +1690,12 @@ rpmInitMacrofileGlob (const char *macrofile)
continue;
for (; *p; ++p)
if (!xisalnum (*p) && ('_' != *p) && ('-' != *p))
break;
if (!xisalnum (*p)) {
if (('_' != *p) && ('-' != *p))
break;
if (p[1] == '\0')
break;
}
if (!*p)
rpmInitMacrofile (gl.gl_pathv[i]);
}