From: Theodore Ts'o Date: Thu, 13 Mar 2008 05:03:28 +0000 (-0400) Subject: e2image: Use open64() so that "e2image -I" works on image files > 2GB X-Git-Tag: v1.40.8~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fbec969a2a9d703373cf8a7e9a95cf594caed72;p=thirdparty%2Fe2fsprogs.git e2image: Use open64() so that "e2image -I" works on image files > 2GB Signed-off-by: "Theodore Ts'o" --- diff --git a/misc/e2image.c b/misc/e2image.c index 4313cc0c7..e10554e0f 100644 --- a/misc/e2image.c +++ b/misc/e2image.c @@ -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);