Sat Feb 6 23:44:28 1999 Norbert Warmuth <nwarmuth@privat.circular.de>

* vfs/tar.c (read_header): Treat hardlinks correctly.
This commit is contained in:
Norbert Warmuth 1999-02-06 23:52:11 +00:00
parent eb560f7e15
commit 2441189d12
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Sat Feb 6 23:44:28 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* tar.c (read_header): Treat hardlinks correctly.
Mon Feb 1 19:32:12 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* ftpfs.c (insert_dots): renamed from insert_dot. We have to

View File

@ -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);