Dos2Unix fails on large files (> 2GB)

Bug #374910 reported by Krzysztof Kapuścik
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tofrodos (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: tofrodos

On a large file:
#> ls -l
-rw-r--r-- 1 zz zz 3960624052 2009-05-11 08:00 stblog.txt

Calling dos2unix fails:
#> dos2unix stblog.txt
dos2unix: Unable to access file stblog.txt.

But strace shows something different:
execve("/usr/bin/dos2unix", ["dos2unix", "stblog.txt"], [/* 48 vars */]) = 0
...
lstat64("stblog.txt", {st_mode=S_IFREG|0644, st_size=3960624052, ...}) = 0
write(2, "dos2unix: "..., 10dos2unix: ) = 10
write(2, "Unable to access file stblog.txt."..., 34Unable to access file stblog.txt.
) = 34
exit_group(0) = ?

---------------

Description: Ubuntu 9.04
Release: 9.04

ii tofrodos 1.7.8.debian.1-1 Converts DOS <-> Unix text files, alias tofromdos

Revision history for this message
Zeno Gantner (zeno-gantner) wrote :

I have the same problem with this version of dos2unix and a 3.5 GB file.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.