mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
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:
parent
eb560f7e15
commit
2441189d12
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user