From 117aa6715589397bbf2e1c8965a2a138c381eb17 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Thu, 12 Apr 2012 22:26:14 +0300 Subject: [PATCH] Ticket #2765: Show directory sizes on any VFS is broken Command "Show directory sizes" shows zero when executed on ftp, utar, fish etc. Signed-off-by: Slava Zanko --- src/filemanager/cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filemanager/cmd.c b/src/filemanager/cmd.c index f03a95301..bc7743c08 100644 --- a/src/filemanager/cmd.c +++ b/src/filemanager/cmd.c @@ -1635,7 +1635,7 @@ single_dirsize_cmd (void) vfs_path_t *p; ui = compute_dir_size_create_ui (); - p = vfs_path_from_str_flags (entry->fname, VPF_NO_CANON); + p = vfs_path_from_str (entry->fname); if (compute_dir_size (p, ui, compute_dir_size_update_ui, &marked, &total, TRUE) == FILE_CONT) @@ -1680,7 +1680,7 @@ dirsizes_cmd (void) uintmax_t total = 0; gboolean ok; - p = vfs_path_from_str_flags (panel->dir.list[i].fname, VPF_NO_CANON); + p = vfs_path_from_str (panel->dir.list[i].fname); ok = compute_dir_size (p, ui, compute_dir_size_update_ui, &marked, &total, TRUE) != FILE_CONT; vfs_path_free (p);