Whamcloud - gitweb
e2image: Use open64() so that "e2image -I" works on image files > 2GB
authorTheodore Ts'o <tytso@mit.edu>
Thu, 13 Mar 2008 05:03:28 +0000 (01:03 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 13 Mar 2008 05:03:28 +0000 (01:03 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/e2image.c

index 4313cc0..e10554e 100644 (file)
@@ -579,8 +579,11 @@ static void install_image(char *device, char *image_fn, int raw_flag)
                exit(1);
        }
 
-
+#ifdef HAVE_OPEN64
+       fd = open64(image_fn, O_RDONLY);
+#else
        fd = open(image_fn, O_RDONLY);
+#endif
        if (fd < 0) {
                perror(image_fn);
                exit(1);