]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a bug that the nlink of regular files, which are not hard linking,
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 15 Jan 2010 16:51:56 +0000 (11:51 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 15 Jan 2010 16:51:56 +0000 (11:51 -0500)
was not set when rockridge was disabled.

SVN-Revision: 1814

libarchive/archive_read_support_format_iso9660.c

index 7bc031af864a334b0a54851b616a114688b54e51..0c640c88e86741227dc72aa47ceb9e9b34acd016 100644 (file)
@@ -1858,6 +1858,7 @@ parse_file_info(struct archive_read *a, struct file_info *parent,
                        iso9660->opt_support_rockridge = 0;
        }
 
+       file->nlinks = 1;/* Reset nlink. we'll calculate it later. */
        /* Tell file's parent how many children that parent has. */
        if (parent != NULL && (flags & 0x02) && file->cl_offset == 0)
                parent->subdirs++;