aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/test/test_acl_pax.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/test/test_acl_pax.c')
-rw-r--r--lib/libarchive/test/test_acl_pax.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/libarchive/test/test_acl_pax.c b/lib/libarchive/test/test_acl_pax.c
index eacad6aa7e2e..a40256ba8c40 100644
--- a/lib/libarchive/test/test_acl_pax.c
+++ b/lib/libarchive/test/test_acl_pax.c
@@ -332,14 +332,10 @@ acl_match(struct acl_t *acl, int type, int permset, int tag, int qual, const cha
return (1);
if (qual != acl->qual)
return (0);
- if (name == NULL) {
- if (acl->name == NULL || acl->name[0] == '\0')
- return (1);
- }
- if (acl->name == NULL) {
- if (name[0] == '\0')
- return (1);
- }
+ if (name == NULL)
+ return (acl->name == NULL || acl->name[0] == '\0');
+ if (acl->name == NULL)
+ return (name == NULL || name[0] == '\0');
return (0 == strcmp(name, acl->name));
}