| commit | f3db3566b5e1342e49dffc5ec3f418a838584194 | [log] [tgz] |
|---|---|---|
| author | Theodore Ts'o <tytso@mit.edu> | Sat Apr 26 13:34:30 1997 +0000 |
| committer | Theodore Ts'o <tytso@mit.edu> | Sat Apr 26 13:34:30 1997 +0000 |
| tree | 1f6c5daaee7f33beb697143a8891da8a55752dd6 | |
| parent | 6f4a109706f51ad11b9fff0983c140ab62549d2f [diff] [blame] |
Many files: Checkin of e2fsprogs 0.5b
diff --git a/lib/ext2fs/newdir.c b/lib/ext2fs/newdir.c index 948bad9..d1018c1 100644 --- a/lib/ext2fs/newdir.c +++ b/lib/ext2fs/newdir.c
@@ -9,7 +9,7 @@ #include <string.h> #include <unistd.h> #include <stdlib.h> -#include <linux/fs.h> + #include <linux/ext2_fs.h> #include "ext2fs.h" @@ -24,6 +24,8 @@ struct ext2_dir_entry *dir = NULL; int rec_len; + EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS); + buf = malloc(fs->blocksize); if (!buf) return ENOMEM;