summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2003-10-19 21:49:44 +0000
committeriedowse <iedowse@FreeBSD.org>2003-10-19 21:49:44 +0000
commit8e6c50f91871e3bc79d7a6bb3db5d7e9cb2d13f0 (patch)
treed0e713dbb9fb49d688f40c036fc05e12d13eb916 /sbin/fsck_ffs
parent8ff2c775d48aeb09b416398bc2663a6d3c1a7893 (diff)
downloadFreeBSD-src-8e6c50f91871e3bc79d7a6bb3db5d7e9cb2d13f0.zip
FreeBSD-src-8e6c50f91871e3bc79d7a6bb3db5d7e9cb2d13f0.tar.gz
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
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r--sbin/fsck_ffs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/dir.c b/sbin/fsck_ffs/dir.c
index 47e2bb4..5a91874 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, ""
OpenPOWER on IntegriCloud