Package: lde
Version: 2.6.0-7.1
Severity: normal

lde aborts if you try to run it on a 250-GB regular file :

  # dd bs=1 seek=250G count=1 if=/dev/zero of=bigfile
  # lde bigfile
  No write access to "bigfile",  attempting to open read-only.
  Unable to open 'bigfile'

Reproducible on both ext3 and XFS filesystems. What happens is
that open(2) fails with EFBIG :

  # strace -o lde.strace lde bigfile
  # grep open lde.strace
  open("/etc/mtab", O_RDONLY)             = 3
  open("bigfile", O_RDWR)                 = -1 EFBIG (File too large)
  open("bigfile", O_RDONLY)               = -1 EFBIG (File too large)
  write(2, "Unable to open \'bigfile\'\n", 25) = 25

Would lde happen to be compiled without -D _FILE_OFFSET_BITS=64 ?

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.11
Locale: LANG=C, LC_CTYPE=en_US (charmap=ISO-8859-1)

-- no debconf information

-- 
André Majorel <http://www.teaser.fr/~amajorel/>
lists.debian.org, the spammers' favourite.

Reply via email to