Bug 70932

Summary: lesspipe.sh uses unsupported tar option -I instead of -j
Product: [Retired] Red Hat Linux Reporter: Todd <bz>
Component: lessAssignee: Karsten Hopp <karsten>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: low Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-07 01:58:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Todd 2002-08-07 01:58:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/0

Description of problem:
The script /usr/bin/lesspipe.sh uses an old, unsupported tar option for bzipped
files.  It uses the old 'I' option which is no longer supported.  It should use
'j' instead.  This causes less file.tar.bz2 to display as garbage.

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

How reproducible:
Always

Steps to Reproduce:
1. less /path/to/some/file.tar.bz2

Actual Results:  the file is displayed in less as garbage

Expected Results:  list of tarball's contents should be displayed

Additional info:

Here is the amazingly complicated patch to lesspipe.sh to restore proper bzip2
functionality:

--- /usr/bin/lesspipe.sh.orig	Tue Aug  6 21:47:31 2002
+++ /usr/bin/lesspipe.sh	Tue Aug  6 21:47:43 2002
@@ -22,7 +22,7 @@
 	fi ;;
   *.tar) tar tvvf "$1" ;;
   *.tgz|*.tar.gz|*.tar.[zZ]) tar tzvvf "$1" ;;
-  *.tar.bz2|*.tbz2) tar tIvvf "$1" ;;
+  *.tar.bz2|*.tbz2) tar tjvvf "$1" ;;
   *.[zZ]|*.gz) gzip -dc -- "$1" ;;
   *.bz2) bzip2 -dc -- "$1" ;;
   *.zip) zipinfo -- "$1" ;;