don't do link count checking on dirs
authorewt <devnull@localhost>
Mon, 25 Aug 1997 17:45:30 +0000 (17:45 +0000)
committerewt <devnull@localhost>
Mon, 25 Aug 1997 17:45:30 +0000 (17:45 +0000)
CVS patchset: 1798
CVS date: 1997/08/25 17:45:30

lib/cpio.c

index 37c2ccc..473b505 100644 (file)
@@ -541,7 +541,8 @@ int cpioInstallArchive(gzFile stream, struct cpioFileMapping * mappings,
            if ((ch.nlink > 1) && S_ISREG(ch.mode) && !ch.size &&
                li->createdPath == -1) {
                /* defer file creation */
-           } else if ((ch.nlink > 1) && (li->createdPath != -1)) {
+           } else if ((ch.nlink > 1) && S_ISREG(ch.mode) && 
+                      (li->createdPath != -1)) {
                createLinks(li, failedFile);
 
                /* this only happens for cpio archives which contain