rpmio/macro.c (rpmInitMacrofileGlob): require last character to be alnum
Rationale: I use 'set patchmode=-' in my ~/.vimrc.
This commit is contained in:
parent
434d4daed5
commit
4d8a11acb6
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user