diff options
Diffstat (limited to 'usr.sbin/mtree/mtree.c')
-rw-r--r-- | usr.sbin/mtree/mtree.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c index 2411586..aa3d1ea 100644 --- a/usr.sbin/mtree/mtree.c +++ b/usr.sbin/mtree/mtree.c @@ -57,7 +57,7 @@ static const char rcsid[] = extern long int crc_total; -int ftsoptions = FTS_PHYSICAL; +int ftsoptions = FTS_LOGICAL; int cflag, dflag, eflag, iflag, nflag, rflag, sflag, uflag, Uflag; u_int keys; char fullpath[MAXPATHLEN]; @@ -77,7 +77,7 @@ main(argc, argv) keys = KEYDEFAULT; init_excludes(); - while ((ch = getopt(argc, argv, "cdef:iK:k:Lnp:rs:UuxX:")) != -1) + while ((ch = getopt(argc, argv, "cdef:iK:k:np:Prs:UuxX:")) != -1) switch((char)ch) { case 'c': cflag = 1; @@ -106,16 +106,16 @@ main(argc, argv) if (*p != '\0') keys |= parsekey(p, NULL); break; - case 'L': - ftsoptions &= ~FTS_PHYSICAL; - ftsoptions |= FTS_LOGICAL; - break; case 'n': nflag = 1; break; case 'p': dir = optarg; break; + case 'P': + ftsoptions ^= FTS_LOGICAL; + ftsoptions |= FTS_PHYSICAL; + break; case 'r': rflag = 1; break; @@ -167,7 +167,7 @@ static void usage() { (void)fprintf(stderr, -"usage: mtree [-LUcdeinrux] [-f spec] [-K key] [-k key] [-p path] [-s seed]\n" +"usage: mtree [-PUcdeinrux] [-f spec] [-K key] [-k key] [-p path] [-s seed]\n" "\t[-X excludes]\n"); exit(1); } |