Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37170 - tar-1.13.92 archiver incorrectly unpacks archives containing './' directory
Summary: tar-1.13.92 archiver incorrectly unpacks archives containing './' directory
Status: RESOLVED DUPLICATE of bug 37132
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-04 02:08 UTC by Yuri Karaban
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Karaban 2004-01-04 02:08:15 UTC
tar in achives containing './' in path (for example)
libpcap-0.8.1/./bpf/net/bpf_filter.c

tar strips anything before './'.
This results in incorrect unpacking:
file bpf/net/bpf_filter.c created but correctly need to be libpcap-0.8.1/bpf/net/bpf_filter.c

Reproducible: Always
Steps to Reproduce:
1. Create dir tmp
2. cd tmp
3. tar xzf /usr/portage/distfiles/libpcap-0.8.1.tar.gz
4. ls
Actual Results:  
you see content of libpcap-0.8.1 (NOT directory itself)


Expected Results:  
you must see libpcap-0.8.1 itself with its content WITHIN IT

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.23)
=================================================================
System uname: 2.4.23 i686 Celeron (Coppermine)
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp3.linux.kiev.ua/pub/Linux/Gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://ftp3.linux.kiev.ua/pub/Linux/Gentoo/portage"
USE="X apm avi berkdb cdr crypt directfb esd fbcon foomaticdb gdbm gif gnome gpm
gtk gtk2 guile imlib jpeg libg++ libwww mad maildir matrox mikmod mmx motif
mozilla moznocompose moznoirc moznomail mpeg mysql ncurses nls oggvorbis opengl
oss pam pda pdflib perl png postgres python qt quicktime readline ruby sdl slang
spell sse ssl tcltk tcpd truetype x86 xml2 xmms xv zlib video_cards_matrox"
Comment 1 Daniel Ahlberg (RETIRED) gentoo-dev 2004-01-04 02:52:35 UTC

*** This bug has been marked as a duplicate of 37132 ***