]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Fix bug in e2fsck and mklost+found; the lost+found directory should
authorTheodore Ts'o <tytso@mit.edu>
Fri, 11 Oct 2002 21:44:12 +0000 (17:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 11 Oct 2002 21:44:12 +0000 (17:44 -0400)
created with mode 0700.

e2fsck/ChangeLog
e2fsck/pass3.c
misc/ChangeLog
misc/mklost+found.c

index 3f19a40afb381b18590865ad1aacb9b173c79cc6..4a5a903878a91ecb38c6aa7c197d39e56ded8929 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-08  Theodore Ts'o  <tytso@mit.edu>
+
+       * pass3.c (e2fsck_get_lost_and_found): Create the lost+found
+               directory with mode 0700.
+
 2002-10-02  Theodore Y. Ts'o  <tytso@mit.edu>
        
        * pass2.c (parse_int_node, check_dir_block): Add byte-swap
index d4fea082e6f7500c9bf1693656aedc27efbf74e8..1e68b1e40524f963dce80fa7c18c61c9ebb62560 100644 (file)
@@ -468,7 +468,7 @@ ext2_ino_t e2fsck_get_lost_and_found(e2fsck_t ctx, int fix)
         * Set up the inode structure
         */
        memset(&inode, 0, sizeof(inode));
-       inode.i_mode = 040755;
+       inode.i_mode = 040700;
        inode.i_size = fs->blocksize;
        inode.i_atime = inode.i_ctime = inode.i_mtime = time(0);
        inode.i_links_count = 2;
index 9e623d796bdb7f1a6222b6c0d2ea15e6fb58a91a..d940c514ef12dd0e936421209f6f6938816782b8 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-11  Theodore Ts'o  <tytso@mit.edu>
+
+       * mklost+found.c (main): Make sure the lost+found directory is
+               created with 0700 permissions.
+
 2002-10-02  Theodore Ts'o  <tytso@mit.edu>
 
        * e2image.c (write_raw_image_file): Handle a bad block in the
index d60e78141d42d677cb78b3b72d970c596f73015e..fa779300fa7856ec06a19da82bc9a12139cf3fce 100644 (file)
@@ -48,7 +48,7 @@ int main (int argc, char ** argv)
                fprintf (stderr, _("Usage: mklost+found\n"));
                exit(1);
        }
-       if (mkdir (LPF, 0755) == -1) {
+       if (mkdir (LPF, 0700) == -1) {
                perror ("mkdir");
                exit(1);
        }