Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38542 - file mis-reporting file types
Summary: file mis-reporting file types
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2004-01-17 13:11 UTC by Dan Egli
Modified: 2004-12-21 20:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Dan Egli 2004-01-17 13:11:54 UTC
Gentoo's file program is reporting uu-encoded files as HTML files. This appears, based on the output, to be an error in the seek of the magic file. The output when doing test1.uue is:
test1.uue: \<head                       HTML document text
now if I run the file command from the RedHat box next door on the same gentoo box, where the only change is symlinking the magic file to /usr/share/magic where the file program from RedHat expects it, I get this:

test1.uue: uuencoded or xxencoded text

Reproducible: Always
Steps to Reproduce:
1. uuencode a file
2. file <your new uuencoded file>
3. See outut indicating html

Actual Results:  
As above

Expected Results:  
should report same as the RedHat file command.
Comment 1 SpanKY gentoo-dev 2004-01-18 19:50:06 UTC
what version of file are you using ?
what version is the redhat one ?
Comment 2 SpanKY gentoo-dev 2004-01-20 22:59:03 UTC
could you try file-4.07 please
Comment 3 Dan Egli 2004-01-21 05:36:52 UTC
Results are identical. I emerged file 4.07 and ran it against a uuencoded file. It reported it as HTML
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-21 11:05:19 UTC
Works fine here:

azarah@nosferatu glibc $ uuencode glibc-2.3.3_pre20040117.ebuild > foo
azarah@nosferatu glibc $ uuencode glibc-2.3.3_pre20040117.ebuild glibc-2.3.3_pre20040117.ebuild > foo
azarah@nosferatu glibc $ less foo
azarah@nosferatu glibc $ file foo
foo: uuencoded or xxencoded text
azarah@nosferatu glibc $ file --version
magic file from /usr/share/misc/file/magic
azarah@nosferatu glibc $

Please attach the file it miss reports.
Comment 5 Dan Egli 2004-01-21 12:41:02 UTC
Ok. I grabbed 4.07 and manually compiled it because emerge was going back to 4.02 (where's the ebuild file for 4.07?) and after doing the make and make install manually it identified uuencoded files correctly.
Comment 6 Dan Egli 2004-12-21 20:47:00 UTC
Cleaning up bugs. This seems to work ok now.