Bug 21150 - Can't force filetype to magic...
Can't force filetype to magic...
Product: Red Hat Linux
Classification: Retired
Component: rhs-printfilters (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Crutcher Dunnavant
Depends On:
  Show dependency treegraph
Reported: 2000-11-20 18:03 EST by Johnray Fuller
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-11-20 18:03:11 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Johnray Fuller 2000-11-20 18:03:08 EST
Hello Crutcher,

Unfortunately, rhs-printfilters do not have the ability to force file types
past magic. Magic therefore can misinterpret files. This lead to the
notorous error:

"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.

Support Services
Comment 1 Crutcher Dunnavant 2001-02-01 17:08:01 EST
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.

Note You need to log in before you can comment on or make changes to this bug.