* sec_acl.cc (aclsort32): Set errno to EINVAL if aclcheck32 failed.
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
| @@ -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)) | ||||||
|  |     { | ||||||
|  |       set_errno (EINVAL); | ||||||
|       return -1; |       return -1; | ||||||
|  |     } | ||||||
|   if (!aclbufp || nentries < 1) |   if (!aclbufp || nentries < 1) | ||||||
|     { |     { | ||||||
|       set_errno (EINVAL); |       set_errno (EINVAL); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user