Ticket #4464: 0001-FTBFS-without-ext2fs-attributes-support.patch

File 0001-FTBFS-without-ext2fs-attributes-support.patch, 892 bytes (added by karlson2k, 18 months ago)

Suggested fix

  • src/filemanager/info.c

    From 8f40328df3673b9ec097bb9e985314b39e679ace Mon Sep 17 00:00:00 2001
    From: Evgeny Grin <k2k@narod.ru>
    Date: Sun, 21 May 2023 14:06:39 +0300
    Subject: [PATCH] FTBFS without ext2fs attributes support
    
    ---
     src/filemanager/info.c | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/src/filemanager/info.c b/src/filemanager/info.c
    index 99d15848b..987a1900c 100644
    a b info_show_info (WInfo * info) 
    265265 
    266266            vpath = vfs_path_from_str (current_panel->dir.list[current_panel->selected].fname->str); 
    267267 
     268#ifdef ENABLE_EXT2FS_ATTR 
    268269            if (mc_fgetflags (vpath, &attr) == 0) 
    269270                tty_printf (_("Attributes: %s"), chattr_get_as_str (attr)); 
    270271            else 
     272#endif 
    271273                tty_print_string (_("Attributes: unavailable")); 
    272274 
    273275            vfs_path_free (vpath, TRUE);