mirror of https://github.com/MidnightCommander/mc
Ticket #2785: error message when entering into compressed tar and cpio archives.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
7974c5b615
commit
8607bcc103
|
@ -249,7 +249,7 @@ cpio_open_cpio_file (struct vfs_class *me, struct vfs_s_super *super, const vfs_
|
|||
|
||||
mc_close (fd);
|
||||
s = g_strconcat (super->name, decompress_extension (type), (char *) NULL);
|
||||
tmp_vpath = vfs_path_from_str (s);
|
||||
tmp_vpath = vfs_path_from_str_flags (s, VPF_NO_CANON);
|
||||
fd = mc_open (tmp_vpath, O_RDONLY);
|
||||
vfs_path_free (tmp_vpath);
|
||||
if (fd == -1)
|
||||
|
|
|
@ -316,7 +316,7 @@ tar_open_archive_int (struct vfs_class *me, const vfs_path_t * vpath, struct vfs
|
|||
|
||||
mc_close (result);
|
||||
s = g_strconcat (archive->name, decompress_extension (type), (char *) NULL);
|
||||
tmp_vpath = vfs_path_from_str (s);
|
||||
tmp_vpath = vfs_path_from_str_flags (s, VPF_NO_CANON);
|
||||
result = mc_open (tmp_vpath, O_RDONLY);
|
||||
vfs_path_free (tmp_vpath);
|
||||
if (result == -1)
|
||||
|
|
Loading…
Reference in New Issue