summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree/mtree.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-05-15 08:46:57 +0000
committerache <ache@FreeBSD.org>1997-05-15 08:46:57 +0000
commitdcc0838048299288fa1fde4924e9845d7d4a2f44 (patch)
tree32e31d8f317da14742615110190d5b2643ef9181 /usr.sbin/mtree/mtree.c
parent3ca7419589b10be6628a4b108aae51717dbbcd2a (diff)
downloadFreeBSD-src-dcc0838048299288fa1fde4924e9845d7d4a2f44.zip
FreeBSD-src-dcc0838048299288fa1fde4924e9845d7d4a2f44.tar.gz
Change FTS_PHYSICAL (not follow symlinks but return them)
to FTS_LOGICAL (follow symlinks and return their targets) Because 1) In the real system there is a lot of symlinks nowdays over /var, /spool, etc. Mtree can't do anything for them, i.e. change permissions/owner. I.e. if you have /var/mail -> /somewhere it will never be changed to group "mail" 775 like -current does now, symlink totally confuses mtree. 2) Mtree can't deal with symlinks properly in any case (they are created separately in other places now), so we lost no functionality by making them invisible for mtree.
Diffstat (limited to 'usr.sbin/mtree/mtree.c')
-rw-r--r--usr.sbin/mtree/mtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c
index eeef534..67e476c 100644
--- a/usr.sbin/mtree/mtree.c
+++ b/usr.sbin/mtree/mtree.c
@@ -52,7 +52,7 @@ static char sccsid[] = "@(#)mtree.c 8.1 (Berkeley) 6/6/93";
extern long int crc_total;
-int ftsoptions = FTS_PHYSICAL;
+int ftsoptions = FTS_LOGICAL;
int cflag, dflag, eflag, iflag, nflag, rflag, sflag, uflag, Uflag;
u_short keys;
char fullpath[MAXPATHLEN];
OpenPOWER on IntegriCloud