* sec_acl.cc (aclsort32): Set errno to EINVAL if aclcheck32 failed.

This commit is contained in:
Corinna Vinschen
2014-09-02 20:07:21 +00:00
parent b4536f29c5
commit 7a1cf1a003
2 changed files with 8 additions and 1 deletions

View File

@@ -767,7 +767,10 @@ extern "C" int
aclsort32 (int nentries, int, aclent_t *aclbufp)
{
if (aclcheck32 (aclbufp, nentries, NULL))
return -1;
{
set_errno (EINVAL);
return -1;
}
if (!aclbufp || nentries < 1)
{
set_errno (EINVAL);