Section One BBS

Welcome, Guest.


Subject: libarchive disallowed filenames Date: Tue May 17 2022 08:52 am
From: Nightfox To: Digital Man

  Re: libarchive disallowed filenames
  By: Digital Man to Nightfox on Sun May 15 2022 11:08 pm

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


 DM> Yes,
 DM> #define SAFEST_FILENAME_CHARS
 DM> "-._0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" 

 DM> These are the allowed filename characters unless you're extracting with
 DM> path information, in which case, you trust this archive and any filename
 DM> chars are allowed. 

 DM> Problematic for *nix shell command-lines where '&' means to execute in the
 DM> background. There can be work-arounds (e.g. escaping with a backslash) and
 DM> it's not an issue unless you're passing the filename on a command-line in
 DM> the first place. 

Makes sense.  Thanks.

Nightfox

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

Previous Message       No More Messages
In Reply To: libarchive disallowed filenames (Digital Man)