summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-03-13 01:03:28 -0400
committerTheodore Ts'o <tytso@mit.edu>2008-03-13 01:03:28 -0400
commit9fbec969a2a9d703373cf8a7e9a95cf594caed72 (patch)
tree2688505ed23a14b9f08b94464a85a76d5524b87a /misc
parent2cd12338395fda301826a88ec7005f4362cc756e (diff)
downloade2fsprogs-9fbec969a2a9d703373cf8a7e9a95cf594caed72.tar.gz
e2image: Use open64() so that "e2image -I" works on image files > 2GB
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc')
-rw-r--r--misc/e2image.c5
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);