mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
o return EINVAL if acl_to_text() have been sent a NULL acl. o update copyright dates.
Reviewed by: rwatson
This commit is contained in:
parent
4e60cb73fe
commit
d5af31a255
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89831
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000, 20001 Robert N. M. Watson
|
||||
* Copyright (c) 1999-2002 Robert N. M. Watson
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -66,6 +66,11 @@ acl_to_text(acl_t acl, ssize_t *len_p)
|
||||
if (!buf)
|
||||
return(NULL);
|
||||
|
||||
if (acl == NULL) {
|
||||
errno = EINVAL;
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
acl_int = &acl->ats_acl;
|
||||
|
||||
mask_perm = ACL_PERM_BITS; /* effective is regular if no mask */
|
||||
|
Loading…
Reference in New Issue
Block a user