- fix: setfiles (aka rpmsx.c) dinna handle patterns correctly.

CVS patchset: 7093
CVS date: 2004/02/15 23:51:36
This commit is contained in:
jbj 2004-02-15 23:51:36 +00:00
parent 64aca82481
commit 275746a36b
3 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@
- re-add --enable-posixmutexes to build.
- fix: set fcontext from pkg when file_contexts doesn't exist (#114040).
- fix: set fcontext for "mkdir -p" directories not in packages.
- fix: setfiles (aka rpmsx.c) dinna handle patterns correctly.
4.2.1 -> 4.2.2:
- unify signal handling in librpmio, use condvar to deliver signal.

View File

@ -83,13 +83,13 @@ static size_t rpmsxsPStem(const char * const buf)
{
/*@observer@*/
static const char * const regex_chars = ".^$?*+|[({";
const char * tmp = strchr(buf + 1, '/');
const char * tmp = strchr(buf, '/');
const char * ind;
if (!tmp)
return 0;
for (ind = buf + 1; ind < tmp; ind++) {
for (ind = buf; ind < tmp; ind++) {
if (strchr(regex_chars, (int)*ind))
return 0;
}

View File

@ -485,6 +485,7 @@ exit 0
* Sun Feb 15 2004 Jeff Johnson <jbj@jbj.org> 4.3-0.11
- fix: set fcontext from pkg when file_contexts doesn't exist (#114040).
- fix: set fcontext for "mkdir -p" directories not in packages.
- fix: setfiles (aka rpmsx.c) dinna handle patterns correctly.
* Wed Feb 11 2004 Jeff Johnson <jbj@redhat.com> 4.3-0.10
- re-add --enable-posixmutexes to build.