TIP: Click on subject to list as thread! ANSI
echo: mystic
to: g00r00
from: Bjrn Wiberg
date: 2021-08-08 20:25:00
subject: Wildcards and packing

Hello g00r00!

When downloading a file list, and choosing to compress it, Mystic appears to be
using a wildcard pointing to the temp directory instead of pointing out the
exact file (allfiles.txt) when creating the archive:

write(13, "2021.08.08 20:21:37 Archive: zip -qj9 \"/home/bbs/mystic/temp1/allfiles.ZIP\" -- /home/bbs/mystic/temp1/* > /dev/null 2>&1\n", 121) = 121

[pid  8945] execve("/bin/sh", ["/bin/sh", "-c", "zip -qj9 \"/home/bbs/mystic/temp1/allfiles.ZIP\" -- /home/bbs/mystic/temp1/* > /dev/null 2>&1"], ["LANG=en_US.UTF-8", (cut)

Is there a reason for this (other than that it is convenient :-D)?

As this is what hinders %2 of the Pack Cmd for ZIP, ZOO and ARC to be quoted ("%2"), as they then interpret the "*" verbatim.

Any left-overs in a temp directory for the node would also risk being added
to the archive, I think.

Does Mystic do this for other things as well (e.g. QWK)?

Just curious.

Thanks in advance!

Best regards
Bj”rn

--- Mystic BBS v1.12 A47 2021/08/08 (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™.