Red Hat Bugzilla – Bug 21150
Can't force filetype to magic...
Last modified: 2008-05-01 11:37:59 EDT
Unfortunately, rhs-printfilters do not have the ability to force file types
past magic. Magic therefore can misinterpret files. This lead to the
"No way to print
this type of input file: fsav (linux) virus (2570-11-10)"
Even a simple command like:
ls -l | lpr
can yield this result.
The only work around I've seen is to pipe the text through a postscript
generator like mpage.
So the above command would have to be:
ls -l | mpage -1 -o | lpr
This will print because magic will correctly ID it as postscript.
At any rate, rhs-printfilters should have the ability to force file types
to magic to prevent such misidentification.
The fsav magic virus is dead in magic. The printing system is very different.
There is still no simple way to force file type, but it is much smarter.