Blame SOURCES/tar-1.26-xattrs-printing.patch

a4d85a
diff --git a/src/xattrs.c b/src/xattrs.c
a4d85a
index 5a4bf72..bdf6ba0 100644
a4d85a
--- a/src/xattrs.c
a4d85a
+++ b/src/xattrs.c
a4d85a
@@ -693,7 +693,7 @@ xattrs_print_char (struct tar_stat_info const *st, char *output)
a4d85a
   if (selinux_context_option > 0 && st->cntx_name)
a4d85a
     *output = '.';
a4d85a
 
a4d85a
-  if (acls_option && (st->acls_a_len || st->acls_d_len))
a4d85a
+  if (acls_option > 0 && (st->acls_a_len || st->acls_d_len))
a4d85a
     *output = '+';
a4d85a
 }
a4d85a
 
a4d85a
@@ -704,11 +704,11 @@ xattrs_print (struct tar_stat_info const *st)
a4d85a
     return;
a4d85a
 
a4d85a
   /* selinux */
a4d85a
-  if (selinux_context_option && st->cntx_name)
a4d85a
+  if (selinux_context_option > 0 && st->cntx_name)
a4d85a
     fprintf (stdlis, "  s: %s\n", st->cntx_name);
a4d85a
 
a4d85a
   /* acls */
a4d85a
-  if (acls_option && (st->acls_a_len || st->acls_d_len))
a4d85a
+  if (acls_option > 0 && (st->acls_a_len || st->acls_d_len))
a4d85a
     {
a4d85a
       fprintf (stdlis, "  a: ");
a4d85a
       acls_one_line ("", ',', st->acls_a_ptr, st->acls_a_len);
a4d85a
@@ -717,7 +717,7 @@ xattrs_print (struct tar_stat_info const *st)
a4d85a
     }
a4d85a
 
a4d85a
   /* xattrs */
a4d85a
-  if (xattrs_option && st->xattr_map_size)
a4d85a
+  if (xattrs_option > 0 && st->xattr_map_size)
a4d85a
     {
a4d85a
       int i;
a4d85a