Deleted Added
full compact
ftree.c (102230) ftree.c (108533)
1/*-
2 * Copyright (c) 1992 Keith Muller.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

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

36 */
37
38#ifndef lint
39#if 0
40static char sccsid[] = "@(#)ftree.c 8.2 (Berkeley) 4/18/94";
41#endif
42#endif /* not lint */
43#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1992 Keith Muller.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

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

36 */
37
38#ifndef lint
39#if 0
40static char sccsid[] = "@(#)ftree.c 8.2 (Berkeley) 4/18/94";
41#endif
42#endif /* not lint */
43#include <sys/cdefs.h>
44__FBSDID("$FreeBSD: head/bin/pax/ftree.c 102230 2002-08-21 17:32:44Z trhodes $");
44__FBSDID("$FreeBSD: head/bin/pax/ftree.c 108533 2003-01-01 18:49:04Z schweikh $");
45
46#include <sys/types.h>
47#include <sys/time.h>
48#include <sys/stat.h>
49#include <unistd.h>
50#include <string.h>
51#include <stdio.h>
52#include <errno.h>

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

308 return(-1);
309 }
310 continue;
311 } else
312 farray[0] = ftcur->fname;
313 }
314
315 /*
45
46#include <sys/types.h>
47#include <sys/time.h>
48#include <sys/stat.h>
49#include <unistd.h>
50#include <string.h>
51#include <stdio.h>
52#include <errno.h>

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

308 return(-1);
309 }
310 continue;
311 } else
312 farray[0] = ftcur->fname;
313 }
314
315 /*
316 * watch it, fts wants the file arg stored in a array of char
317 * ptrs, with the last one a null. we use a two element array
316 * Watch it, fts wants the file arg stored in an array of char
317 * ptrs, with the last one a null. We use a two element array
318 * and set farray[0] to point at the buffer with the file name
319 * in it. We cannot pass all the file args to fts at one shot
320 * as we need to keep a handle on which file arg generates what
321 * files (the -n and -d flags need this). If the open is
322 * successful, return a 0.
323 */
324 if ((ftsp = fts_open(farray, ftsopts, NULL)) != NULL)
325 break;

--- 202 unchanged lines hidden ---
318 * and set farray[0] to point at the buffer with the file name
319 * in it. We cannot pass all the file args to fts at one shot
320 * as we need to keep a handle on which file arg generates what
321 * files (the -n and -d flags need this). If the open is
322 * successful, return a 0.
323 */
324 if ((ftsp = fts_open(farray, ftsopts, NULL)) != NULL)
325 break;

--- 202 unchanged lines hidden ---