Bug 116779 - less does not recognize .cab files
Summary: less does not recognize .cab files
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: RC 1
Hardware: All SUSE Other
: P5 - None : Minor
Target Milestone: ---
Assignee: Michal Marek
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-13 14:53 UTC by Petr Mladek
Modified: 2005-09-13 15:47 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Mladek 2005-09-13 14:53:00 UTC
If the variable LESS_ADVANCED_PREPROCESSOR="yes", the utility "less" should list
files in .cab archives. It does not work on SL 10.0 because the utility "file" 
returns another description for such files now.

/usr/bin/file prints:
---  cut ---
$> file sample.cab 
sample.cab: Microsoft Cabinet archive data, 108346 bytes, 144 files
--- cut ---

/usr/bin/lessopen.sh searches for:
--- cut ---
                *Microsoft\ cabinet\ file\ data*)
--- cut ---


How to reproduce it?

1. export LESS_ADVANCED_PREPROCESSOR="yes"
2. less sample.cab

It should list the files in the sample.cab archive but it shows the binary
content now.
Comment 1 Michal Marek 2005-09-13 15:47:34 UTC
I've changed it to 

               *Microsoft\ Cabinet\ *\ data*)

so that it works with both versions of the file(1) command.