summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree/mtree.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-06-05 14:43:42 +0000
committerpeter <peter@FreeBSD.org>1998-06-05 14:43:42 +0000
commit00b7e773c5170cbb781853c5c38133d0549366c5 (patch)
treef332996c96a22c22db01fd28c26f30b2a2f58072 /usr.sbin/mtree/mtree.h
parent8d3569022185b777193cfe6f8ab66c54846d39a2 (diff)
downloadFreeBSD-src-00b7e773c5170cbb781853c5c38133d0549366c5.zip
FreeBSD-src-00b7e773c5170cbb781853c5c38133d0549366c5.tar.gz
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.
Diffstat (limited to 'usr.sbin/mtree/mtree.h')
-rw-r--r--usr.sbin/mtree/mtree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/mtree/mtree.h b/usr.sbin/mtree/mtree.h
index 4102274..b7678aa 100644
--- a/usr.sbin/mtree/mtree.h
+++ b/usr.sbin/mtree/mtree.h
@@ -71,7 +71,9 @@ typedef struct _node {
#define F_UNAME 0x2000 /* user name */
#define F_VISIT 0x4000 /* file visited */
#define F_MD5 0x8000 /* MD5 digest */
- u_short flags; /* items set */
+#define F_NOCHANGE 0x10000 /* If owner/mode "wrong", do */
+ /* not change */
+ u_int flags; /* items set */
#define F_BLOCK 0x001 /* block special */
#define F_CHAR 0x002 /* char special */
OpenPOWER on IntegriCloud