Fix segfault
authormarc <devnull@localhost>
Wed, 27 May 1998 02:17:21 +0000 (02:17 +0000)
committermarc <devnull@localhost>
Wed, 27 May 1998 02:17:21 +0000 (02:17 +0000)
CVS patchset: 2136
CVS date: 1998/05/27 02:17:21

CHANGES
build/TODO
build/parseScript.c

diff --git a/CHANGES b/CHANGES
index 039a0e4..0abf60c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -14,6 +14,7 @@
        - set file states for --justdb packages to "not installed"
        - handle missing file states properly in -e code
        - install time wasn missing for --justdb packages
+       - missing parameter in an rpmError() caused segfault
 
 2.4.109 -> 2.5:
        - fixed return code bug in build code
index 760c195..448050e 100644 (file)
@@ -1,3 +1,11 @@
+>I just found an odd little bug in rpm 2.5, when  there is something like
+>
+>%doc readme
+>
+>in the %files list, then if readme doesn't exit, rpm will just put an empty
+>doc directory in the package.
+
+
 option to %setup to *not* do chown/chgrp/chmod
 
 > Most of my spec files have empty Distribution: and Vendor: tag because I
index cf83a92..048ad3e 100644 (file)
@@ -131,7 +131,7 @@ int parseScript(Spec spec, int parsePart)
            if (prog[0] != '/') {
                rpmError(RPMERR_BADSPEC,
                         "line %d: script program must begin "
-                        "with \'/\': %s", prog);
+                        "with \'/\': %s", spec->lineNum, prog);
                FREE(argv);
                poptFreeContext(optCon);
                return RPMERR_BADSPEC;