Fix bug where the directory prefix is listed in the file list
authormarc <devnull@localhost>
Thu, 6 Nov 1997 17:28:29 +0000 (17:28 +0000)
committermarc <devnull@localhost>
Thu, 6 Nov 1997 17:28:29 +0000 (17:28 +0000)
CVS patchset: 1895
CVS date: 1997/11/06 17:28:29

build/pack.c

index fc6c9ef..63a2a38 100644 (file)
@@ -518,7 +518,10 @@ int packageBinaries(Spec s, char *passPhrase, int doPackage)
                          prefix, file);
                    return 1;
                }
-               file += prefixLen + 1; /* 1 for "/" */
+               file += prefixLen;
+               if (*file) {
+                   file++;  /* 1 for "/" */
+               }
            }
 
            if (! (*fflagarray & RPMFILE_GHOST)) {