lost+found directories are mode -1700

This commit is contained in:
mrg 1997-04-21 11:34:37 +00:00
parent d655665117
commit b6daab9f37
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dir.c,v 1.20 1996/09/27 22:45:11 christos Exp $ */
/* $NetBSD: dir.c,v 1.21 1997/04/21 11:34:37 mrg Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)dir.c 8.5 (Berkeley) 12/8/94";
#else
static char rcsid[] = "$NetBSD: dir.c,v 1.20 1996/09/27 22:45:11 christos Exp $";
static char rcsid[] = "$NetBSD: dir.c,v 1.21 1997/04/21 11:34:37 mrg Exp $";
#endif
#endif /* not lint */
@ -56,7 +56,7 @@ static char rcsid[] = "$NetBSD: dir.c,v 1.20 1996/09/27 22:45:11 christos Exp $"
#include "extern.h"
char *lfname = "lost+found";
int lfmode = 01777;
int lfmode = 01700;
struct dirtemplate emptydir = { 0, DIRBLKSIZ };
struct dirtemplate dirhead = {
0, 12, DT_DIR, 1, ".",

View File

@ -1,4 +1,4 @@
.\" $NetBSD: fsck_ffs.8,v 1.17 1997/04/21 05:35:19 lukem Exp $
.\" $NetBSD: fsck_ffs.8,v 1.18 1997/04/21 11:34:39 mrg Exp $
.\"
.\" Copyright (c) 1980, 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -182,7 +182,7 @@ to check the file system, regardless of the state of the clean flag.
Use the mode specified in octal immediately after the flag as the
permission bits to use when creating the
.Pa lost+found
directory rather than the default 1777.
directory rather than the default 1700.
In particular, systems that do not wish to have lost files accessible
by all users on the system should use a more restrictive
set of permissions such as 700.