diff options
-rw-r--r-- | lib/libc/posix1e/acl_to_text.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/posix1e/acl_to_text.c b/lib/libc/posix1e/acl_to_text.c index 4c079e4..b5e7b92 100644 --- a/lib/libc/posix1e/acl_to_text.c +++ b/lib/libc/posix1e/acl_to_text.c @@ -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 */ |