Section One BBS

Welcome, Guest.


Subject: libarchive disallowed filenames Date: Sat May 14 2022 02:34 pm
From: Nightfox To: Digital Man

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 Ar
chive object, and for a few zip files, I noticed it threw an exception when extr
acting them due to disallowed filenames inside the zip file.  For example, RIPTM
154.ZIP is RIPTerm, and the following exception error was given when trying to e
xtract it with Archive:

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

Also, TM421-4.zip is the 4th zip file for Telemate, and Archivew threw an except
ion 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 checke
d 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 ar
chives?
I'm guessing those filenames are disallowed because of the & in their names? I i
magine they were disallowed because & can be problematic in filenames for some f
ilesystems?

Nightfox

---
 ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com

No More Messages       No More Messages
Replies: libarchive disallowed filenames (Digital Man)