diff --git a/usr.sbin/mtree/mtree.8 b/usr.sbin/mtree/mtree.8 index d5a59f51041..e47de7b3c6e 100644 --- a/usr.sbin/mtree/mtree.8 +++ b/usr.sbin/mtree/mtree.8 @@ -93,14 +93,14 @@ directory when using the option. .It Fl p Ar path Use the file hierarchy rooted in +.It Fl P +Don't follow symbolic links in the file hierarchy, instead consider +the symbolic link itself in any comparisons. .Ar path , instead of the current directory. .It Fl r Remove any files in the file hierarchy that are not described in the specification. -.It Fl S -Don't follow symbolic links in the file hierarchy, instead consider -the symbolic link itself in any comparisons. .It Fl s Ar seed Display a single checksum to the standard error output that represents all of the files for which the keyword diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c index 734701b0bc8..b994cd2ef16 100644 --- a/usr.sbin/mtree/mtree.c +++ b/usr.sbin/mtree/mtree.c @@ -77,7 +77,7 @@ main(argc, argv) keys = KEYDEFAULT; init_excludes(); - while ((ch = getopt(argc, argv, "cdef:iK:k:np:rs:SUuxX:")) != -1) + while ((ch = getopt(argc, argv, "cdef:iK:k:np:Prs:UuxX:")) != -1) switch((char)ch) { case 'c': cflag = 1; @@ -112,6 +112,10 @@ main(argc, argv) case 'p': dir = optarg; break; + case 'P': + ftsoptions ^= FTS_LOGICAL; + ftsoptions |= FTS_PHYSICAL; + break; case 'r': rflag = 1; break; @@ -120,10 +124,6 @@ main(argc, argv) crc_total = ~strtol(optarg, &p, 0); if (*p) errx(1, "illegal seed value -- %s", optarg); - case 'S': - ftsoptions ^= FTS_LOGICAL; - ftsoptions |= FTS_PHYSICAL; - break; case 'U': Uflag = 1; uflag = 1;