BTW:  The original bug mentioned EOVERFLOW and in hindsight I see that my patch 
doesn't address it, but EOVERFLOW is not the bug I'm seeing.  I'm seeing the 
max size check fail.
--- look.c:145
                if (sb.st_size > SIZE_T_MAX)
                        errx(2, "%s: %s", file, strerror(EFBIG));
---


$ strace look foo the.player.4.mpg 2>&1 | tail -n 7
open("the.player.4.mpg", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4045771844, ...}) = 0
write(2, "look: "..., 6look: )                = 6
write(2, "the.player.4.mpg: File too large"..., 32the.player.4.mpg: File too 
large) = 32
write(2, "\n"..., 1
)                    = 1
exit_group(2)                           = ?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/510613

Title:
  look(1) can't open bigfiles

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to