diff options
author | jedgar <jedgar@FreeBSD.org> | 2002-01-26 19:32:50 +0000 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 2002-01-26 19:32:50 +0000 |
commit | 56748c135c10c3e671f5348b344320182d9b804c (patch) | |
tree | e363522cbad7a5668b576d6c4fe179f913c42893 /lib/libc | |
parent | 291ad4fb60acbf64d76536cdce0aac039913d972 (diff) | |
download | FreeBSD-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/libc')
-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 */ |