diff options
author | iedowse <iedowse@FreeBSD.org> | 2003-10-19 21:49:44 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2003-10-19 21:49:44 +0000 |
commit | 8e6c50f91871e3bc79d7a6bb3db5d7e9cb2d13f0 (patch) | |
tree | d0e713dbb9fb49d688f40c036fc05e12d13eb916 /sbin/fsck_ffs | |
parent | 8ff2c775d48aeb09b416398bc2663a6d3c1a7893 (diff) | |
download | FreeBSD-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.c | 2 |
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, "" |