Whamcloud - gitweb
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 3f19a40..4a5a903 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 d4fea08..1e68b1e 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 9e623d7..d940c51 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 d60e781..fa77930 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);
        }