fix by mike.dld for tarfs dont shows duplicate folders in some tar-files
This commit is contained in:
Ilia Maslakov 2009-07-11 12:57:41 +00:00
parent 55e7db14a5
commit 07c87f2b27
1 changed files with 5 additions and 0 deletions

View File

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