Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/newfs_lfs Default the root directory and lost+found dir...
details: https://anonhg.NetBSD.org/src/rev/7123fda1a221
branches: trunk
changeset: 494210:7123fda1a221
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Jul 03 21:51:05 2000 +0000
description:
Default the root directory and lost+found directory to mode 0755,
as in FFS.
diffstat:
sbin/newfs_lfs/lfs.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r d78055c55499 -r 7123fda1a221 sbin/newfs_lfs/lfs.c
--- a/sbin/newfs_lfs/lfs.c Mon Jul 03 21:21:26 2000 +0000
+++ b/sbin/newfs_lfs/lfs.c Mon Jul 03 21:51:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs.c,v 1.14 2000/07/03 01:49:12 perseant Exp $ */
+/* $NetBSD: lfs.c,v 1.15 2000/07/03 21:51:05 thorpej Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)lfs.c 8.5 (Berkeley) 5/24/95";
#else
-__RCSID("$NetBSD: lfs.c,v 1.14 2000/07/03 01:49:12 perseant Exp $");
+__RCSID("$NetBSD: lfs.c,v 1.15 2000/07/03 21:51:05 thorpej Exp $");
#endif
#endif /* not lint */
@@ -168,6 +168,7 @@
/* lfs_flags */ 0
};
+#define UMASK 0755
struct direct lfs_root_dir[] = {
{ ROOTINO, sizeof(struct direct), DT_DIR, 1, "."},
@@ -484,7 +485,7 @@
/* Initialize the ROOT Directory */
sb_addr = make_dinode(ROOTINO, ++dip, howmany(DIRBLKSIZ,lfsp->lfs_fsize), sb_addr, lfsp);
- dip->di_mode = IFDIR|IREAD|IWRITE|IEXEC;
+ dip->di_mode = IFDIR | UMASK;
dip->di_size = DIRBLKSIZ;
dip->di_blocks = howmany(roundup(DIRBLKSIZ,lfsp->lfs_fsize),DEV_BSIZE);
dip->di_nlink = 3;
@@ -494,7 +495,7 @@
/* Initialize the lost+found Directory */
sb_addr = make_dinode(LOSTFOUNDINO, ++dip, howmany(DIRBLKSIZ,lfsp->lfs_fsize), sb_addr, lfsp);
- dip->di_mode = IFDIR|IREAD|IWRITE|IEXEC;
+ dip->di_mode = IFDIR | UMASK;
dip->di_size = DIRBLKSIZ;
dip->di_blocks = howmany(roundup(DIRBLKSIZ,lfsp->lfs_fsize),DEV_BSIZE);
dip->di_nlink = 2;
Home |
Main Index |
Thread Index |
Old Index