mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(info_show_info): don't create VFS path if EXT2 attributes aren't supported.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d201e9cdac
commit
48c5428b0f
@ -262,23 +262,23 @@ info_show_info (WInfo * info)
|
|||||||
case 6:
|
case 6:
|
||||||
widget_gotoyx (w, 6, 3);
|
widget_gotoyx (w, 6, 3);
|
||||||
|
|
||||||
|
#ifdef ENABLE_EXT2FS_ATTR
|
||||||
{
|
{
|
||||||
vfs_path_t *vpath;
|
vfs_path_t *vpath;
|
||||||
#ifdef ENABLE_EXT2FS_ATTR
|
|
||||||
unsigned long attr;
|
unsigned long attr;
|
||||||
#endif
|
|
||||||
|
|
||||||
vpath = vfs_path_from_str (fe->fname->str);
|
vpath = vfs_path_from_str (fe->fname->str);
|
||||||
|
|
||||||
#ifdef ENABLE_EXT2FS_ATTR
|
|
||||||
if (mc_fgetflags (vpath, &attr) == 0)
|
if (mc_fgetflags (vpath, &attr) == 0)
|
||||||
tty_printf (_("Attributes: %s"), chattr_get_as_str (attr));
|
tty_printf (_("Attributes: %s"), chattr_get_as_str (attr));
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
tty_print_string (_("Attributes: unavailable"));
|
tty_print_string (_("Attributes: unavailable"));
|
||||||
|
|
||||||
vfs_path_free (vpath, TRUE);
|
vfs_path_free (vpath, TRUE);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
tty_print_string (_("Attributes: unavailable"));
|
||||||
|
#endif /* ENABLE_EXT2FS_ATTR */
|
||||||
MC_FALLTHROUGH;
|
MC_FALLTHROUGH;
|
||||||
case 5:
|
case 5:
|
||||||
widget_gotoyx (w, 5, 3);
|
widget_gotoyx (w, 5, 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user