mirror of https://github.com/MidnightCommander/mc
Ticket #366
fix by mike.dld for tarfs dont shows duplicate folders in some tar-files
This commit is contained in:
parent
55e7db14a5
commit
07c87f2b27
|
@ -616,6 +616,11 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive,
|
|||
}
|
||||
|
||||
tar_fill_stat (archive, &st, header, *h_size);
|
||||
if (S_ISDIR(st.st_mode)) {
|
||||
entry = MEDATA->find_entry (me, parent, p, LINK_NO_FOLLOW, FL_NONE);
|
||||
if (entry)
|
||||
goto done;
|
||||
}
|
||||
inode = vfs_s_new_inode (me, archive, &st);
|
||||
|
||||
inode->data_offset = data_position;
|
||||
|
|
Loading…
Reference in New Issue