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.
This commit is contained in:
Andrey A. Chernov 1997-05-15 08:46:57 +00:00
parent cfd94da5e2
commit 7e03040bc0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25831

View File

@ -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];