From d6ad008082c42a17612d6982f3f5892a5f2cbfd5 Mon Sep 17 00:00:00 2001 From: Ian Dowse Date: Sun, 19 Oct 2003 21:49:44 +0000 Subject: [PATCH] Change the default mode for lost+found from 01777 to 0700. The original intention of the less restrictive permissions was to allow users to move or delete recovered files that they own. However, it is better to not create world-writable directories by default; the administrator can always pre-create lost+found if different permissions are desired. Reviewed by: mckusick --- sbin/fsck_ffs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/fsck_ffs/dir.c b/sbin/fsck_ffs/dir.c index 47e2bb452ffb..5a918748d380 100644 --- a/sbin/fsck_ffs/dir.c +++ b/sbin/fsck_ffs/dir.c @@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$"); #include "fsck.h" const char *lfname = "lost+found"; -int lfmode = 01777; +int lfmode = 0700; struct dirtemplate emptydir = { 0, DIRBLKSIZ, DT_UNKNOWN, 0, "", 0, 0, DT_UNKNOWN, 0, ""