Index: attr-2.4.39/getfattr/getfattr.c =================================================================== --- attr-2.4.39.orig/getfattr/getfattr.c +++ attr-2.4.39/getfattr/getfattr.c @@ -355,6 +355,10 @@ int do_print(const char *path, const str return 1; } + /* + * When doing a physical walk or neither doing a logical walk nor processing a + * direct command like argument, do not dereference symlinks. + */ if ((walk_flags & WALK_TREE_SYMLINK) && (walk_flags & WALK_TREE_DEREFERENCE) && ((walk_flags & WALK_TREE_PHYSICAL) ||