Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sbin/newfs_lfs Pull up rev. 1.15:



details:   https://anonhg.NetBSD.org/src/rev/92577620b4aa
branches:  netbsd-1-5
changeset: 488372:92577620b4aa
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jul 03 22:09:15 2000 +0000

description:
Pull up rev. 1.15:
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 5fe5dfad3d57 -r 92577620b4aa sbin/newfs_lfs/lfs.c
--- a/sbin/newfs_lfs/lfs.c      Mon Jul 03 21:58:13 2000 +0000
+++ b/sbin/newfs_lfs/lfs.c      Mon Jul 03 22:09:15 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs.c,v 1.12 2000/05/23 18:17:20 perseant Exp $        */
+/*     $NetBSD: lfs.c,v 1.12.4.1 2000/07/03 22:09:15 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.12 2000/05/23 18:17:20 perseant Exp $");
+__RCSID("$NetBSD: lfs.c,v 1.12.4.1 2000/07/03 22:09:15 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -166,6 +166,7 @@
        /* lfs_flags */         0
 };
 
+#define        UMASK   0755
 
 struct direct lfs_root_dir[] = {
        { ROOTINO, sizeof(struct direct), DT_DIR, 1, "."},
@@ -471,7 +472,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;
@@ -481,7 +482,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