* 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

@ -1,3 +1,7 @@
2014-09-02 Corinna Vinschen <corinna@vinschen.de>
* sec_acl.cc (aclsort32): Set errno to EINVAL if aclcheck32 failed.
2014-08-31 Corinna Vinschen <corinna@vinschen.de> 2014-08-31 Corinna Vinschen <corinna@vinschen.de>
* uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow user accounts * uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow user accounts

View File

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