OSDN Git Service

e2image: fix crash when using e2image -I with a 64-bit file system
authorTheodore Ts'o <tytso@mit.edu>
Sun, 16 Jun 2013 00:52:08 +0000 (20:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 16 Jun 2013 00:52:08 +0000 (20:52 -0400)
Addresses-Debian-Bug: #703067

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/e2image.c

index 369c946..885a794 100644 (file)
@@ -1171,7 +1171,7 @@ static void install_image(char *device, char *image_fn, int type)
 {
        errcode_t retval;
        ext2_filsys fs;
-       int open_flag = EXT2_FLAG_IMAGE_FILE;
+       int open_flag = EXT2_FLAG_IMAGE_FILE | EXT2_FLAG_64BITS;
        int fd = 0;
        io_manager      io_ptr;
        io_channel      io;