Package: e2fsprogs
Version: 1.39+1.40-WIP-2006.11.14+dfsg-1
Severity: normal
Tags: patch

Even though debugfs/dump.c uses O_LARGEFILE when opening files, that
symbol is not defined by default, so large file support is not enabled.

Here's a simple patch that defines _GNU_SOURCE, like misc/badblocks.c
already does, to enable large file support.  I've tested it successfully
on a 2.5 GiB file.


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-toroia
Locale: LANG=en_CA, LC_CTYPE=en_CA (charmap=ISO-8859-1)

Versions of packages e2fsprogs depends on:
ii  e2fslibs 1.39+1.40-WIP-2006.11.14+dfsg-1 ext2 filesystem libraries
ii  libblkid 1.39+1.40-WIP-2006.11.14+dfsg-1 block device id library
ii  libc6    2.3.6.ds1-13                    GNU C Library: Shared libraries
ii  libcomer 1.39+1.40-WIP-2006.11.14+dfsg-1 common error description library
ii  libss2   1.39+1.40-WIP-2006.11.14+dfsg-1 command-line interface parsing lib
ii  libuuid1 1.39+1.40-WIP-2006.11.14+dfsg-1 universally unique id library

e2fsprogs recommends no packages.

-- no debconf information
--- debugfs/dump.c.orig 2005-09-06 09:40:13.000000000 +0000
+++ debugfs/dump.c      2007-02-27 00:52:29.000000000 +0000
@@ -5,6 +5,8 @@
  * under the terms of the GNU Public License.
  */
 
+#define _GNU_SOURCE /* for O_LARGEFILE */
+
 #include <stdio.h>
 #include <unistd.h>
 #include <stdlib.h>

Reply via email to