- fix bug packing /usr/doc when last file was %dir
authormarc <devnull@localhost>
Wed, 3 Jun 1998 03:32:59 +0000 (03:32 +0000)
committermarc <devnull@localhost>
Wed, 3 Jun 1998 03:32:59 +0000 (03:32 +0000)
CVS patchset: 2143
CVS date: 1998/06/03 03:32:59

CHANGES
build/files.c

diff --git a/CHANGES b/CHANGES
index 98bb611..5a2f647 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,7 @@
        - handle %files -f with no %setup (no build directory)
        - fixed ugly i18n header bug
        - deal with lang paths sanely when entries are missing languages
+       - fix bug packing /usr/doc when last file was %dir
        
 2.5 -> 2.5.1:
        - fail if sources are not regular files
index 2fd831e..205682d 100644 (file)
@@ -471,6 +471,10 @@ static int processPackageFiles(Spec spec, Package pkg,
        /* fl.current now takes on "ownership" of the specialDocAttrRec */
        /* allocated string data.                                       */
        fl.current = specialDocAttrRec;
+       fl.isDir = 0;
+       fl.inFtw = 0;
+       fl.currentFlags = 0;
+       fl.currentVerifyFlags = 0;
        processBinaryFile(pkg, &fl, specialDoc);
        FREE(specialDoc);
     }