• libarchive disallowed filenames

    From Nightfox@1:103/705 to Digital Man on Sat May 14 14:34:10 2022
    Hi DM,

    Just recently I was updating my archive viewer door to use Synchronet's Archive class (if possible) to view/extract archives. I'm using a try/catch with the Archive object, and for a few zip files, I noticed it threw an exception when extracting them due to disallowed filenames inside the zip file. For example, RIPTM154.ZIP is RIPTerm, and the following exception error was given when trying to extract it with Archive:

    RIPTM154.ZIP: Error: disallowed filename '3&HALF10.ICN' (after extracting 165 items successfully)

    Also, TM421-4.zip is the 4th zip file for Telemate, and Archivew threw an exception with this error:

    TM421-4.ZIP: Error: disallowed filename 'AT&T.SCR' (after extracting 20 items successfully)

    I don't seem to have these filenames in any of my configuration files. I checked my text/file.can, but the only filename I have in there is Photo.scr. It seems like Synchronet has a built-in list of disallowed filenames for files inside archives?
    I'm guessing those filenames are disallowed because of the & in their names? I imagine they were disallowed because & can be problematic in filenames for some filesystems?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)