acl_set.c (56055) | acl_set.c (56274) |
---|---|
1/*- 2 * Copyright (c) 1999 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 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_set.c 56055 2000-01-15 19:44:27Z rwatson $ | 26 * $FreeBSD: head/lib/libc/posix1e/acl_set.c 56274 2000-01-19 06:13:59Z rwatson $ |
27 */ 28/* 29 * acl_set_file -- set a file/directory ACL by name 30 */ 31 32#include <sys/types.h> 33#include <sys/acl.h> 34#include <errno.h> --- 14 unchanged lines hidden (view full) --- 49 if (acl_posix1e(acl)) { 50 error = acl_sort(acl); 51 if (error) { 52 errno = error; 53 return (-1); 54 } 55 } 56 | 27 */ 28/* 29 * acl_set_file -- set a file/directory ACL by name 30 */ 31 32#include <sys/types.h> 33#include <sys/acl.h> 34#include <errno.h> --- 14 unchanged lines hidden (view full) --- 49 if (acl_posix1e(acl)) { 50 error = acl_sort(acl); 51 if (error) { 52 errno = error; 53 return (-1); 54 } 55 } 56 |
57 return (acl_syscall_set_file(path_p, type, acl)); | 57 return (__acl_set_file(path_p, type, acl)); |
58} 59 60 61int 62acl_set_fd(int fd, acl_t acl, acl_type_t type) 63{ 64 int error; 65 66 if (acl_posix1e(acl)) { 67 error = acl_sort(acl); 68 if (error) { 69 errno = error; 70 return (-1); 71 } 72 } 73 | 58} 59 60 61int 62acl_set_fd(int fd, acl_t acl, acl_type_t type) 63{ 64 int error; 65 66 if (acl_posix1e(acl)) { 67 error = acl_sort(acl); 68 if (error) { 69 errno = error; 70 return (-1); 71 } 72 } 73 |
74 return (acl_syscall_set_fd(fd, type, acl)); | 74 return (__acl_set_fd(fd, type, acl)); |
75} | 75} |