diff options
-rw-r--r-- | misc/e2image.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/e2image.c b/misc/e2image.c index 4313cc0c..e10554e0 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); |