getfacl.c (108450) | getfacl.c (141578) |
---|---|
1/*- 2 * Copyright (c) 1999, 2001, 2002 Robert N M Watson 3 * All rights reserved. 4 * 5 * This software was developed by Robert Watson for the TrustedBSD Project. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 */ 28/* 29 * getfacl -- POSIX.1e utility to extract ACLs from files and directories 30 * and send the results to stdout 31 */ 32 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1999, 2001, 2002 Robert N M Watson 3 * All rights reserved. 4 * 5 * This software was developed by Robert Watson for the TrustedBSD Project. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 */ 28/* 29 * getfacl -- POSIX.1e utility to extract ACLs from files and directories 30 * and send the results to stdout 31 */ 32 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/bin/getfacl/getfacl.c 108450 2002-12-30 15:36:29Z rwatson $"); | 35__FBSDID("$FreeBSD: head/bin/getfacl/getfacl.c 141578 2005-02-09 17:37:39Z ru $"); |
36 37#include <sys/types.h> 38#include <sys/param.h> 39#include <sys/acl.h> 40#include <sys/stat.h> 41 42#include <err.h> 43#include <errno.h> 44#include <stdio.h> 45#include <stdlib.h> 46#include <string.h> 47#include <unistd.h> 48 49int more_than_one = 0; 50 51static void 52usage(void) 53{ 54 | 36 37#include <sys/types.h> 38#include <sys/param.h> 39#include <sys/acl.h> 40#include <sys/stat.h> 41 42#include <err.h> 43#include <errno.h> 44#include <stdio.h> 45#include <stdlib.h> 46#include <string.h> 47#include <unistd.h> 48 49int more_than_one = 0; 50 51static void 52usage(void) 53{ 54 |
55 fprintf(stderr, "getfacl [-dh] [files ...]\n"); | 55 fprintf(stderr, "getfacl [-dh] [file ...]\n"); |
56} 57 58/* 59 * return an ACL corresponding to the permissions 60 * contained in struct stat 61 */ 62static acl_t 63acl_from_stat(struct stat sb) --- 202 unchanged lines hidden --- | 56} 57 58/* 59 * return an ACL corresponding to the permissions 60 * contained in struct stat 61 */ 62static acl_t 63acl_from_stat(struct stat sb) --- 202 unchanged lines hidden --- |