Ticket #4464: FTBFS without ext2fs attributes support.

Closes MidnightCommander/mc#188.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Evgeny Grin 2023-05-21 14:06:39 +03:00 committed by Andrew Borodin
parent ec3f142b86
commit cfe9ae814b

View File

@ -265,9 +265,11 @@ info_show_info (WInfo * info)
vpath = vfs_path_from_str (current_panel->dir.list[current_panel->selected].fname->str);
#ifdef ENABLE_EXT2FS_ATTR
if (mc_fgetflags (vpath, &attr) == 0)
tty_printf (_("Attributes: %s"), chattr_get_as_str (attr));
else
#endif
tty_print_string (_("Attributes: unavailable"));
vfs_path_free (vpath, TRUE);