- fix: setfiles (aka rpmsx.c) dinna handle patterns correctly.
authorjbj <devnull@localhost>
Sun, 15 Feb 2004 23:51:36 +0000 (23:51 +0000)
committerjbj <devnull@localhost>
Sun, 15 Feb 2004 23:51:36 +0000 (23:51 +0000)
CVS patchset: 7093
CVS date: 2004/02/15 23:51:36

CHANGES
lib/rpmsx.c
rpm.spec.in

diff --git a/CHANGES b/CHANGES
index 13c57b5..271ec69 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -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.
index f01690c..a61ccaa 100644 (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;
     }
index 958cd90..795f973 100644 (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.