diff --git a/vfs/ChangeLog b/vfs/ChangeLog index f0239028e..5dfba8320 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,7 @@ +Sat Feb 6 23:44:28 1999 Norbert Warmuth + + * tar.c (read_header): Treat hardlinks correctly. + Mon Feb 1 19:32:12 1999 Norbert Warmuth * ftpfs.c (insert_dots): renamed from insert_dot. We have to diff --git a/vfs/tar.c b/vfs/tar.c index f2ac4d89c..a2e6943eb 100644 --- a/vfs/tar.c +++ b/vfs/tar.c @@ -341,11 +341,10 @@ read_header (vfs *me, vfs_s_super *archive, int tard) } if (header->header.linkflag == LF_LINK) { - parent = vfs_s_find_inode (me, archive->root, current_link_name, LINK_NO_FOLLOW, 0); - if (parent == NULL) { + inode = vfs_s_find_inode (me, archive->root, current_link_name, LINK_NO_FOLLOW, 0); + if (inode == NULL) { message_1s (1, MSG_ERROR, _("Inconsistent tar archive")); } else { - inode = parent; entry = vfs_s_new_entry(me, p, inode); vfs_s_insert_entry(me, parent, entry); g_free (current_link_name);