fix check for trailing / in Prefix:
authorjbj <devnull@localhost>
Tue, 6 Oct 1998 14:21:06 +0000 (14:21 +0000)
committerjbj <devnull@localhost>
Tue, 6 Oct 1998 14:21:06 +0000 (14:21 +0000)
CVS patchset: 2400
CVS date: 1998/10/06 14:21:06

CHANGES
build/parsePreamble.c

diff --git a/CHANGES b/CHANGES
index 34dfe6a..e9eb441 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -17,6 +17,7 @@
        - add new fully recursive macro.c
 
 2.5.4 -> 2.5.5:
+       - fix check for trailing / in Prefix:
        - remove 2 character language name assumption.
         - add /usr/lib/rpm/find-lang.sh (W. L. Estes <wlestes@uncg.edu>)
        - miscellaneous portability cruft (Eugene Kanter).
index 77ca764..446399d 100644 (file)
@@ -402,7 +402,7 @@ static int handlePreambleTag(Spec spec, Package pkg, int tag, char *macro,
        headerGetEntry(pkg->header, tag, NULL, (void **)&array, &num);
        while (num--) {
            len = strlen(array[num]);
-           if (array[num][len - 1] == '/') {
+           if (array[num][len - 1] == '/' && len > 1) {
                rpmError(RPMERR_BADSPEC,
                         _("line %d: Prefixes must not end with \"/\": %s"),
                         spec->lineNum, spec->line);