From 00b7e773c5170cbb781853c5c38133d0549366c5 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 5 Jun 1998 14:43:42 +0000 Subject: Create a new flag, "nochange", which will specify that a directory is to be created if it's missing, otherwise completely ignore it's modes and owners. Primary intended targets: /usr/src and /usr/obj. Adjust the 'not created: File exists' message to mention that it's a directory that's the problem, otherwise it doesn't make sense. I had created chown-style -L and -P flag to control logical/physical mode (ie: whether symlinks were followed), but the nochange flag is enough to get the blasted thing out of my hair so I took them back out. --- usr.sbin/mtree/mtree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/mtree/mtree.c') diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c index cf61a9b..76b945b 100644 --- a/usr.sbin/mtree/mtree.c +++ b/usr.sbin/mtree/mtree.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)mtree.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: mtree.c,v 1.6 1997/10/01 06:30:02 charnier Exp $"; #endif /* not lint */ #include @@ -59,7 +59,7 @@ extern long int crc_total; int ftsoptions = FTS_LOGICAL; int cflag, dflag, eflag, iflag, nflag, rflag, sflag, uflag, Uflag; -u_short keys; +u_int keys; char fullpath[MAXPATHLEN]; static void usage __P((void)); -- cgit v1.1