* sec_acl.cc (aclsort32): Set errno to EINVAL if aclcheck32 failed.
This commit is contained in:
parent
b4536f29c5
commit
7a1cf1a003
|
@ -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>
|
||||
|
||||
* uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow user accounts
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue