acl_to_text.c (89831) | acl_to_text.c (91034) |
---|---|
1/*- 2 * Copyright (c) 1999-2002 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999-2002 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/lib/libc/posix1e/acl_to_text.c 89831 2002-01-26 19:32:50Z jedgar $ | 26 * $FreeBSD: head/lib/libc/posix1e/acl_to_text.c 91034 2002-02-21 23:17:19Z jedgar $ |
27 */ 28/* 29 * acl_to_text - return a text string with a text representation of the acl 30 * in it. 31 */ 32 33#include <sys/types.h> 34#include "namespace.h" --- 23 unchanged lines hidden (view full) --- 58 char perm_buf[_POSIX1E_ACL_STRING_PERM_MAXSIZE+1], 59 effective_perm_buf[_POSIX1E_ACL_STRING_PERM_MAXSIZE+1]; 60 int i, error, len; 61 uid_t ae_id; 62 acl_tag_t ae_tag; 63 acl_perm_t ae_perm, effective_perm, mask_perm; 64 65 buf = strdup(""); | 27 */ 28/* 29 * acl_to_text - return a text string with a text representation of the acl 30 * in it. 31 */ 32 33#include <sys/types.h> 34#include "namespace.h" --- 23 unchanged lines hidden (view full) --- 58 char perm_buf[_POSIX1E_ACL_STRING_PERM_MAXSIZE+1], 59 effective_perm_buf[_POSIX1E_ACL_STRING_PERM_MAXSIZE+1]; 60 int i, error, len; 61 uid_t ae_id; 62 acl_tag_t ae_tag; 63 acl_perm_t ae_perm, effective_perm, mask_perm; 64 65 buf = strdup(""); |
66 if (!buf) | 66 if (buf == NULL) |
67 return(NULL); 68 69 if (acl == NULL) { 70 errno = EINVAL; 71 return(NULL); 72 } 73 74 acl_int = &acl->ats_acl; --- 161 unchanged lines hidden --- | 67 return(NULL); 68 69 if (acl == NULL) { 70 errno = EINVAL; 71 return(NULL); 72 } 73 74 acl_int = &acl->ats_acl; --- 161 unchanged lines hidden --- |