control: tag -1 patch pending

This has been fixed in upstream git, here's the patch. I have checked in
an armhf chroot on harris.debian.org that the patch fixes the problem.

I have made a non-maintainer upload to DELAYED/5.

Cheers,
-Hilko
>From a7b0f770b0f3f058ff1682beba5a78def91e91a7 Mon Sep 17 00:00:00 2001
From: Eric Sandeen <sand...@redhat.com>
Date: Wed, 21 May 2014 12:47:44 -0500
Subject: [PATCH] mke2fs: use ext2fs_open_file() in check_plausibility()

The commit:

802146c mke2fs: create a regular file if necessary

caused a regression on 32-bit machines; the open() fails if
the file size is > 4G.

Using ext2fs_open_file() fixes it.

Addresses-Red-Hat-Bugzilla: #1099892

Signed-off-by: Eric Sandeen <sand...@redhat.com>
Signed-off-by: Theodore Ts'o <ty...@mit.edu>
---
 misc/util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/misc/util.c b/misc/util.c
index 1c0818f..7e91509 100644
--- a/misc/util.c
+++ b/misc/util.c
@@ -194,10 +194,10 @@ int check_plausibility(const char *device, int flags, int *ret_is_dev)
 	char *fs_type = NULL;
 	char *fs_label = NULL;
 
-	fd = open(device, fl, 0666);
+	fd = ext2fs_open_file(device, fl, 0666);
 	if ((fd < 0) && (errno == ENOENT) && (flags & CREATE_FILE)) {
 		fl |= O_CREAT;
-		fd = open(device, fl, 0666);
+		fd = ext2fs_open_file(device, fl, 0666);
 		if (fd >= 0 && (flags & VERBOSE_CREATE))
 			printf(_("Creating regular file %s\n"), device);
 	}
-- 
2.0.0

Reply via email to