BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004114 [BusyBox] Standards Compliance minor always 07-14-08 19:28 07-16-08 16:18
Reporter cristic View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0004114: comm bug on text files not ending in newline
Description Hello, comm (busybox-1.11.1) has a bug in the way in handles text files that don't end in a newline. It reports no differences, even when the last lines are different. Here is a small test case:

$ echo -n abc >A
$ echo -n def >B
$ ./comm A B
$

Here is what comm in GNU CoreUtils 6.12 prints:
$ ~/coreutils-6.12/src/comm A B
abc
        def
$

Best,
Cristian
Additional Information
Attached Files  9.patch [^] (5,434 bytes) 07-14-08 23:45

- Relationships

- Notes
(0009324)
vda
07-14-08 23:45

Oh my. The code is awful.

Please try attached 9.patch.
 
(0009424)
cristic
07-16-08 14:12

Looks fine. Thanks for the patch.
 
(0009474)
vda
07-16-08 16:18

fixed in svn
 

- Issue History
Date Modified Username Field Change
07-14-08 19:28 cristic New Issue
07-14-08 19:28 cristic Status new => assigned
07-14-08 19:28 cristic Assigned To  => BusyBox
07-14-08 23:45 vda File Added: 9.patch
07-14-08 23:45 vda Note Added: 0009324
07-15-08 18:07 cristic Issue Monitored: cristic
07-16-08 14:12 cristic Note Added: 0009424
07-16-08 16:18 vda Status assigned => closed
07-16-08 16:18 vda Note Added: 0009474
07-16-08 16:18 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker