1
0
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:
Chris D. Faulhaber 2002-01-26 19:32:50 +00:00
parent 4e60cb73fe
commit d5af31a255
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89831

View File

@ -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 */