summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree/mtree.c
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2000-07-14 09:37:59 +0000
committerjoe <joe@FreeBSD.org>2000-07-14 09:37:59 +0000
commit58dad7500ca2c1fbe603212b0ee945d2491c31d0 (patch)
tree9a825a65e0b39a9e230793f8f94fb352eef4db74 /usr.sbin/mtree/mtree.c
parentb9b09beff77fa0c63504c65b19ba867fd78e84da (diff)
downloadFreeBSD-src-58dad7500ca2c1fbe603212b0ee945d2491c31d0.zip
FreeBSD-src-58dad7500ca2c1fbe603212b0ee945d2491c31d0.tar.gz
Use -P instead of -S to specify that no symlinks should be followed.
There's no reason to make it different from cp(1), chmod(1), chown(1) etc. Requested by: sheldonh
Diffstat (limited to 'usr.sbin/mtree/mtree.c')
-rw-r--r--usr.sbin/mtree/mtree.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c
index 734701b..b994cd2 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;
OpenPOWER on IntegriCloud