ftree.c (201179) | ftree.c (222177) |
---|---|
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 * --- 23 unchanged lines hidden (view full) --- 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)ftree.c 8.2 (Berkeley) 4/18/94"; 37#endif 38#endif /* not lint */ 39#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 * --- 23 unchanged lines hidden (view full) --- 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)ftree.c 8.2 (Berkeley) 4/18/94"; 37#endif 38#endif /* not lint */ 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: head/bin/pax/ftree.c 201179 2009-12-29 08:45:50Z ed $"); | 40__FBSDID("$FreeBSD: head/bin/pax/ftree.c 222177 2011-05-22 14:03:38Z uqs $"); |
41 42#include <sys/types.h> 43#include <sys/time.h> 44#include <sys/stat.h> 45#include <unistd.h> 46#include <string.h> 47#include <stdio.h> 48#include <errno.h> --- 47 unchanged lines hidden (view full) --- 96 * if fts did a chdir off into the boondocks, we may create an archive 97 * volume in a place where the user did not expect to. 98 */ 99 ftsopts = FTS_NOCHDIR; 100 101 /* 102 * optional user flags that effect file traversal 103 * -H command line symlink follow only (half follow) | 41 42#include <sys/types.h> 43#include <sys/time.h> 44#include <sys/stat.h> 45#include <unistd.h> 46#include <string.h> 47#include <stdio.h> 48#include <errno.h> --- 47 unchanged lines hidden (view full) --- 96 * if fts did a chdir off into the boondocks, we may create an archive 97 * volume in a place where the user did not expect to. 98 */ 99 ftsopts = FTS_NOCHDIR; 100 101 /* 102 * optional user flags that effect file traversal 103 * -H command line symlink follow only (half follow) |
104 * -L follow sylinks (logical) 105 * -P do not follow sylinks (physical). This is the default. | 104 * -L follow symlinks (logical) 105 * -P do not follow symlinks (physical). This is the default. |
106 * -X do not cross over mount points 107 * -t preserve access times on files read. 108 * -n select only the first member of a file tree when a match is found 109 * -d do not extract subtrees rooted at a directory arg. 110 */ 111 if (Lflag) 112 ftsopts |= FTS_LOGICAL; 113 else --- 422 unchanged lines hidden --- | 106 * -X do not cross over mount points 107 * -t preserve access times on files read. 108 * -n select only the first member of a file tree when a match is found 109 * -d do not extract subtrees rooted at a directory arg. 110 */ 111 if (Lflag) 112 ftsopts |= FTS_LOGICAL; 113 else --- 422 unchanged lines hidden --- |