diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2015-12-26 15:29:11 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2015-12-26 15:43:01 +0100 |
commit | 1e8bf7924db1eb4ba16751e24f6f56c94db04bb9 (patch) | |
tree | e8bb646d6f320c017606e0263a5d39c655a8ffb3 /libacl | |
parent | 454e4195a61b4012c6c24e43fff4d21dc1621c4e (diff) | |
download | acl-1e8bf7924db1eb4ba16751e24f6f56c94db04bb9.tar.gz |
__acl_from_xattr: Set errno for invalid tag types
__acl_from_xattr was not setting errno for invalid tag types in the
xattr.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'libacl')
-rw-r--r-- | libacl/__acl_from_xattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libacl/__acl_from_xattr.c b/libacl/__acl_from_xattr.c index 34f14a0..358d7bc 100644 --- a/libacl/__acl_from_xattr.c +++ b/libacl/__acl_from_xattr.c @@ -33,7 +33,7 @@ __acl_from_xattr(const char *ext_acl_p, size_t size) acl_ea_entry *ext_end_p; acl_obj *acl_obj_p; acl_entry_obj *entry_obj_p; - int entries, error; + int entries; if (size < sizeof(acl_ea_header)) { errno = EINVAL; @@ -77,7 +77,7 @@ __acl_from_xattr(const char *ext_acl_p, size_t size) break; default: - error = EINVAL; + errno = EINVAL; goto fail; } ext_entry_p++; |