TIP: Click on subject to list as thread! ANSI
echo: mystic
to: g00r00
from: Bjrn Wiberg
date: 2021-08-06 14:35:00
subject: Re: Unpack Cmd %2 and pat

Hello again, g00r00!

On 06 Aug 2021, Bj”rn Wiberg said the following...
 BW> The only "bad" thing I noticed is that the automatic "basenaming"
 BW> (stripping  path info from the entered filename) of "%2" for the Unpack
 BW> Cmd can make it  hard to perform archive member (file) selection for
 BW> certain archivers.
 BW> 
 BW> For instance, tar requires the "correct" (full) path of a file within an 
 BW> archive to be entered when selecting files for extraction.

Apart from tar, this also applies to zip, lha and 7z (including LHA/LZH via 7-ZIP for Windows).

(But not to arj e -e, zoo x:, or arc e which doesn't have any notion of subdirectories whatsoever).

So it would be great if the %2 sanitization of Unpack Cmd would disallow things like ../ or ..\ but allow subdir/ and ./subdir and ./subdir/. and ././ and similar. Otherwise extraction of files from subdirectories becomes impossible.

Best regards
Bj”rn

--- Mystic BBS v1.12 A47 2021/08/05 (Linux/64)
                                                                                                                            
* Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.