[Bug 510613] Re: look(1) can't open bigfiles
jugmac00
510613 at bugs.launchpad.net
Thu Jan 17 09:00:23 UTC 2019
Is there any chance this gets fixed?
8 years later I still get the bug on Ubtunu 18.04 / WSL.
jugmac00 at DESKTOP-jugmac00:/mnt/d/Projects/pw-hash$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic
jugmac00 at DESKTOP-jugmac00:/mnt/d/Projects/pw-hash$ look -f $(echo -n xxx| sha1sum | awk '{print $1}') pwned-passwords-sha1-ordered-by-hash-v4.txt
look: pwned-passwords-sha1-ordered-by-hash-v4.txt: File too large
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bsdmainutils in Ubuntu.
https://bugs.launchpad.net/bugs/510613
Title:
look(1) can't open bigfiles
Status in bsdmainutils package in Ubuntu:
Confirmed
Bug description:
Binary package hint: bsdmainutils
look(1) isn't passing O_LARGEFILE to open(2).
$ dpkg -S /usr/bin/look
bsdmainutils: /usr/bin/look
$ dpkg-query -W bsdmainutils
bsdmainutils 6.1.10ubuntu4
$
$ echo | socat -u - file:bigfile,create,largefile,seek=100000000000
$ ls -l bigfile
-rw-r--r-- 1 kiosk kiosk 100000000001 2010-01-21 11:17 bigfile
$ look foo bigfile
look: bigfile: Value too large for defined data type
$ strace look foo bigfile 2>&1 | grep EOVERFLOW
open("bigfile", O_RDONLY) = -1 EOVERFLOW (Value too large for defined data type)
$
I've a 11.5GB sorted file and look's binary search would be ideal but I
can't use it. Once it manages to open the file, it needs to be able to
cope with the long offsets it may be seeking to.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/510613/+subscriptions
More information about the foundations-bugs
mailing list