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:
Andrew Borodin 2012-04-23 20:46:49 +04:00
parent 7974c5b615
commit 8607bcc103
2 changed files with 2 additions and 2 deletions

View File

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

View File

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