diff options
author | joe <joe@FreeBSD.org> | 2000-07-13 22:13:42 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2000-07-13 22:13:42 +0000 |
commit | dad66a4f4f293b19db9c7939efff27a7bc8fc69a (patch) | |
tree | dd0ba243240866bc964b8cd557a8aad95f798589 /usr.sbin/mtree/mtree.c | |
parent | 1a2da9c569393657e716341d0de1a0a7194a3cb0 (diff) | |
download | FreeBSD-src-dad66a4f4f293b19db9c7939efff27a7bc8fc69a.zip FreeBSD-src-dad66a4f4f293b19db9c7939efff27a7bc8fc69a.tar.gz |
Added a flag (-S) to mtree to specify that symlinks shouldn't be
followed. This allows type=link matches to work properly and match
the link itself, instead of the file/directory that the link is
pointing to.
Diffstat (limited to 'usr.sbin/mtree/mtree.c')
-rw-r--r-- | usr.sbin/mtree/mtree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c index ee4eb50..734701b 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:UuxX:")) != -1) + while ((ch = getopt(argc, argv, "cdef:iK:k:np:rs:SUuxX:")) != -1) switch((char)ch) { case 'c': cflag = 1; @@ -120,6 +120,10 @@ 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; |