aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index b137994..d9a5808 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -492,7 +492,7 @@ tar_extract() {
# sacrifice speed. Fortunately, we don't have to make such a choice when
# using pax.
case "${extract##*/}" in
- pax) decompress "$1" | pax -r -s '/[^\/]*\///' ;;
+ pax) decompress "$1" | pax -r -s '/[^\/]*/./' ;;
gtar|bsdtar) decompress "$1" | "$tar" xf - --strip-components 1 ;;
tar) decompress "$1" > .ktar