• Wildcards and packing

    From Björn Wiberg@2:201/137 to g00r00 on Sun Aug 8 20:25:12 2021
    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)
  • From g00r00@1:129/215 to Björn Wiberg on Sun Aug 8 18:14:40 2021
    Is there a reason for this (other than that it is convenient :-D)?

    For the all/newfiles listings it doesn't need to have the wildcard so I could change it there, but for offline mail it absolutely needs to use a wildcard because there is a big full directory of files which can vary.

    The archiver needs to be able to use a filemask to zip at least in that case.

    ... Confucius say: "Man who runs behind car gets exhausted"

    --- Mystic BBS v1.12 A47 2021/08/07 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Björn Wiberg@2:201/137 to g00r00 on Mon Aug 9 08:12:27 2021
    Hello g00r00!

    On 08 Aug 2021, g00r00 said the following...
    For the all/newfiles listings it doesn't need to have the wildcard so I could change it there, but for offline mail it absolutely needs to use a wildcard because there is a big full directory of files which can vary.

    I suspected that... Thanks!

    Best regards
    Bj�rn

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