Deleted Added
full compact
setfacl.c (75928) setfacl.c (76881)
1/*
2 * Copyright (c) 2001 Chris D. Faulhaber
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 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 * POSSIBILITY OF SUCH DAMAGE.
25 *
1/*
2 * Copyright (c) 2001 Chris D. Faulhaber
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 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 * POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: head/bin/setfacl/setfacl.c 75928 2001-04-24 22:45:41Z jedgar $
26 * $FreeBSD: head/bin/setfacl/setfacl.c 76881 2001-05-20 05:13:21Z kris $
27 */
28
29#include <sys/types.h>
30#include <sys/param.h>
31#include <sys/stat.h>
32#include <sys/acl.h>
33#include <sys/queue.h>
34

--- 133 unchanged lines hidden (view full) ---

168 usage();
169
170 /* take list of files from stdin */
171 if (argc == 0 || !strcmp(argv[0], "-")) {
172 if (have_stdin)
173 err(EX_USAGE, "cannot have more than one stdin");
174 have_stdin = 1;
175 bzero(&filename, sizeof(filename));
27 */
28
29#include <sys/types.h>
30#include <sys/param.h>
31#include <sys/stat.h>
32#include <sys/acl.h>
33#include <sys/queue.h>
34

--- 133 unchanged lines hidden (view full) ---

168 usage();
169
170 /* take list of files from stdin */
171 if (argc == 0 || !strcmp(argv[0], "-")) {
172 if (have_stdin)
173 err(EX_USAGE, "cannot have more than one stdin");
174 have_stdin = 1;
175 bzero(&filename, sizeof(filename));
176 while (fgets(filename, sizeof(filename), stdin)) {
176 while (fgets(filename, (int)sizeof(filename), stdin)) {
177 /* remove the \n */
178 filename[strlen(filename) - 1] = '\0';
179 add_filename(filename);
180 }
181 } else
182 for (i = 0; i < argc; i++)
183 add_filename(argv[i]);
184

--- 70 unchanged lines hidden ---
177 /* remove the \n */
178 filename[strlen(filename) - 1] = '\0';
179 add_filename(filename);
180 }
181 } else
182 for (i = 0; i < argc; i++)
183 add_filename(argv[i]);
184

--- 70 unchanged lines hidden ---