mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
(cpio_open_cpio_file): restore file offset after read of magic number.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
e01a89059b
commit
ab2ec1b341
@ -234,7 +234,9 @@ cpio_open_cpio_file (struct vfs_class *me, struct vfs_s_super *super, const vfs_
|
||||
arch->deferred = NULL;
|
||||
|
||||
type = get_compression_type (fd, super->name);
|
||||
if (type != COMPRESSION_NONE)
|
||||
if (type == COMPRESSION_NONE)
|
||||
mc_lseek (fd, 0, SEEK_SET);
|
||||
else
|
||||
{
|
||||
char *s;
|
||||
vfs_path_t *tmp_vpath;
|
||||
|
Loading…
Reference in New Issue
Block a user