On Thu, Mar 2, 2017 at 9:14 AM, Joachim Durchholz <j...@durchholz.org> wrote:

> For the other invalid characters, the error will (well: should) be caught
> by the filesystem.
> Trying to check that in advance is a security hole in waiting - somebody
> might mount or unmount filesystems between check and use.
>

This, sadly, is not always true. The // prefix is a specific case in point.
CIFS/NTFS *does* catch invalid characters... unless the kernel filesystem
is buggy, which Linux's has been. Multiple times. The result of that is
files that you can write but fail to read back, sometimes on Linux and
sometimes on the remote / the Windows dual-boot, as appropriate. Again,
this knowledge *should not* be coded into perl; we can't be nannies for
Linux filesystem driver developers.

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to