mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Merge branch '2785_tar_error_message'
* 2785_tar_error_message: Ticket #2785: error message when entering into compressed tar and cpio archives.
This commit is contained in:
commit
c4b16bce35
@ -249,7 +249,7 @@ cpio_open_cpio_file (struct vfs_class *me, struct vfs_s_super *super, const vfs_
|
|||||||
|
|
||||||
mc_close (fd);
|
mc_close (fd);
|
||||||
s = g_strconcat (super->name, decompress_extension (type), (char *) NULL);
|
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);
|
fd = mc_open (tmp_vpath, O_RDONLY);
|
||||||
vfs_path_free (tmp_vpath);
|
vfs_path_free (tmp_vpath);
|
||||||
if (fd == -1)
|
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);
|
mc_close (result);
|
||||||
s = g_strconcat (archive->name, decompress_extension (type), (char *) NULL);
|
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);
|
result = mc_open (tmp_vpath, O_RDONLY);
|
||||||
vfs_path_free (tmp_vpath);
|
vfs_path_free (tmp_vpath);
|
||||||
if (result == -1)
|
if (result == -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user