mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Merge branch '2297_incremental_tar_empty_dirs'
* 2297_incremental_tar_empty_dirs: Ticket #2297: show empty directories in incremental tar archives.
This commit is contained in:
commit
cea0973393
@ -388,7 +388,7 @@ tar_fill_stat (struct vfs_s_super *archive, struct stat *st, union record *heade
|
||||
* know about the other modes but I think I cause no new
|
||||
* problem when I adjust them, too. -- Norbert.
|
||||
*/
|
||||
if (header->header.linkflag == LF_DIR)
|
||||
if (header->header.linkflag == LF_DIR || header->header.linkflag == LF_DUMPDIR)
|
||||
st->st_mode |= S_IFDIR;
|
||||
else if (header->header.linkflag == LF_SYMLINK)
|
||||
st->st_mode |= S_IFLNK;
|
||||
@ -554,15 +554,10 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive, int tard, si
|
||||
else
|
||||
*h_size = tar_from_oct (1 + 12, header->header.size);
|
||||
|
||||
/*
|
||||
* Skip over directory snapshot info records that
|
||||
* are stored in incremental tar archives.
|
||||
*/
|
||||
if (header->header.linkflag == LF_DUMPDIR)
|
||||
{
|
||||
if (arch->type == TAR_UNKNOWN)
|
||||
arch->type = TAR_GNU;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user