skip ALL leading slashes :-)
authorroot <devnull@localhost>
Fri, 28 Jun 1996 21:13:13 +0000 (21:13 +0000)
committerroot <devnull@localhost>
Fri, 28 Jun 1996 21:13:13 +0000 (21:13 +0000)
CVS patchset: 705
CVS date: 1996/06/28 21:13:13

build/pack.c

index 726d26b..9de6a03 100644 (file)
@@ -490,7 +490,9 @@ int packageBinaries(Spec s, char *passPhrase)
        cpioFileList = newStringBuf();
        while (count--) {
            file = *farray++;
-           file++;  /* Skip leading "/" */
+           while (*file == '/') {
+               file++;  /* Skip leading "/" */
+           }
            appendLineStringBuf(cpioFileList, file);
        }