Bug 705499

Summary: 'file' command in Rawhide prints "DOS-executable (" [sic] for file of all zeroes
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: fileAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ggruner, jkaluza
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: file-5.07-2.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-25 02:30:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Richard W.M. Jones 2011-05-17 19:46:23 UTC
Description of problem:

The 'file' command in Rawhide gives a strange output for a file
of all zeroes:

$ truncate -s 100M /tmp/test
$ file /tmp/test
/tmp/test: DOS-executable (

Or in case you think sparseness is a problem:

$ dd if=/dev/zero of=/tmp/test bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 0.258742 s, 405 MB/s
$ file /tmp/test
/tmp/test: DOS-executable (

Version-Release number of selected component (if applicable):

file-5.07-1.fc16.x86_64

How reproducible:

100%

Note this is a regression over the previous version I was
using from Fedora 15, which printed "data".

Steps to Reproduce:
1. See above.
2.
3.
  
Actual results:

DOS-executable (

Expected results:

Something else, eg. the old "data" string.

Additional info:

Comment 1 Richard W.M. Jones 2011-05-17 19:55:15 UTC
Submitted upstream bug report:
http://bugs.gw.com/view.php?id=125

Comment 2 Jan Kaluža 2011-05-18 11:14:46 UTC
Thanks for submitting it upstream. It's regression in new version caused by new DOS device driver pattern, which is broken. I'm not sure how it was supposed to work anyway...

Comment 3 Fedora Update System 2011-05-23 11:11:27 UTC
file-5.07-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/file-5.07-2.fc15

Comment 4 Fedora Update System 2011-05-25 02:30:08 UTC
file-5.07-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Gregor Gruener 2011-05-25 08:10:37 UTC
*** Bug 707374 has been marked as a duplicate of this bug. ***