summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2002-01-26 19:32:50 +0000
committerjedgar <jedgar@FreeBSD.org>2002-01-26 19:32:50 +0000
commit56748c135c10c3e671f5348b344320182d9b804c (patch)
treee363522cbad7a5668b576d6c4fe179f913c42893 /lib
parent291ad4fb60acbf64d76536cdce0aac039913d972 (diff)
downloadFreeBSD-src-56748c135c10c3e671f5348b344320182d9b804c.zip
FreeBSD-src-56748c135c10c3e671f5348b344320182d9b804c.tar.gz
o return EINVAL if acl_to_text() have been sent a NULL acl. o update copyright dates.
Reviewed by: rwatson
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/posix1e/acl_to_text.c7
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 */
OpenPOWER on IntegriCloud