aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/posix1e/acl_set.c
diff options
context:
space:
mode:
authorChris D. Faulhaber <jedgar@FreeBSD.org>2002-02-21 23:13:06 +0000
committerChris D. Faulhaber <jedgar@FreeBSD.org>2002-02-21 23:13:06 +0000
commite146d0bc6a66b4566a60ba4734bfe4e1de5a244c (patch)
tree6e00b3823026644f447123b44689f43399e9f057 /lib/libc/posix1e/acl_set.c
parentc61eb011c4cc54cfe56726694066c50a61d991b7 (diff)
Notes
Diffstat (limited to 'lib/libc/posix1e/acl_set.c')
-rw-r--r--lib/libc/posix1e/acl_set.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/posix1e/acl_set.c b/lib/libc/posix1e/acl_set.c
index 6b7ddedff8e3..39fa3a9ac88d 100644
--- a/lib/libc/posix1e/acl_set.c
+++ b/lib/libc/posix1e/acl_set.c
@@ -51,6 +51,10 @@ acl_set_file(const char *path_p, acl_type_t type, acl_t acl)
{
int error;
+ if (acl == NULL || path_p == NULL) {
+ errno = EINVAL;
+ return (-1);
+ }
if (_posix1e_acl(acl, type)) {
error = _posix1e_acl_sort(acl);
if (error) {