You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
7 years ago
|
diff --git a/src/xattrs.c b/src/xattrs.c
|
||
|
index 5a4bf72..bdf6ba0 100644
|
||
|
--- a/src/xattrs.c
|
||
|
+++ b/src/xattrs.c
|
||
|
@@ -693,7 +693,7 @@ xattrs_print_char (struct tar_stat_info const *st, char *output)
|
||
|
if (selinux_context_option > 0 && st->cntx_name)
|
||
|
*output = '.';
|
||
|
|
||
|
- if (acls_option && (st->acls_a_len || st->acls_d_len))
|
||
|
+ if (acls_option > 0 && (st->acls_a_len || st->acls_d_len))
|
||
|
*output = '+';
|
||
|
}
|
||
|
|
||
|
@@ -704,11 +704,11 @@ xattrs_print (struct tar_stat_info const *st)
|
||
|
return;
|
||
|
|
||
|
/* selinux */
|
||
|
- if (selinux_context_option && st->cntx_name)
|
||
|
+ if (selinux_context_option > 0 && st->cntx_name)
|
||
|
fprintf (stdlis, " s: %s\n", st->cntx_name);
|
||
|
|
||
|
/* acls */
|
||
|
- if (acls_option && (st->acls_a_len || st->acls_d_len))
|
||
|
+ if (acls_option > 0 && (st->acls_a_len || st->acls_d_len))
|
||
|
{
|
||
|
fprintf (stdlis, " a: ");
|
||
|
acls_one_line ("", ',', st->acls_a_ptr, st->acls_a_len);
|
||
|
@@ -717,7 +717,7 @@ xattrs_print (struct tar_stat_info const *st)
|
||
|
}
|
||
|
|
||
|
/* xattrs */
|
||
|
- if (xattrs_option && st->xattr_map_size)
|
||
|
+ if (xattrs_option > 0 && st->xattr_map_size)
|
||
|
{
|
||
|
int i;
|