summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-03-27 17:15:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-03-27 17:15:28 +0000
commit5b07dd726adc4d9f5bfa6c696367403d0a5d6304 (patch)
tree624ce4c65b27837ba1505c6b09b51eb1c65c2848 /sbin
parent07c917fab6c7d1bafc3fda3187db5bab8fba08e7 (diff)
if lost+found generation code is enabled, create it with a nice mode
Diffstat (limited to 'sbin')
-rw-r--r--sbin/newfs/mkfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c
index 88801eb7bab..eacd1bbbfd9 100644
--- a/sbin/newfs/mkfs.c
+++ b/sbin/newfs/mkfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkfs.c,v 1.6 1997/02/23 03:51:23 millert Exp $ */
+/* $OpenBSD: mkfs.c,v 1.7 1997/03/27 17:15:27 deraadt Exp $ */
/* $NetBSD: mkfs.c,v 1.25 1995/06/18 21:35:38 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)mkfs.c 8.3 (Berkeley) 2/3/94";
#else
-static char rcsid[] = "$OpenBSD: mkfs.c,v 1.6 1997/02/23 03:51:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: mkfs.c,v 1.7 1997/03/27 17:15:27 deraadt Exp $";
#endif
#endif /* not lint */
@@ -883,7 +883,7 @@ fsinit(utime)
memcpy(&buf[i], &lost_found_dir[2],
DIRSIZ(0, &lost_found_dir[2]));
}
- node.di_mode = IFDIR | UMASK;
+ node.di_mode = IFDIR | 1700;
node.di_nlink = 2;
node.di_size = sblock.fs_bsize;
node.di_db[0] = alloc(node.di_size, node.di_mode);