GNU bug report logs -
#49723
28.0.50; Test in coding.c for NUL bytes in filenames is not reliable
Previous Next
Reported by: Eli Zaretskii <eliz <at> gnu.org>
Date: Sat, 24 Jul 2021 17:40:01 UTC
Severity: normal
Found in version 28.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #38 received at 49723 <at> debbugs.gnu.org (full text, mbox):
> From: Michael Albinus <michael.albinus <at> gmx.de>
> Cc: federicotedin <at> gmail.com, phst <at> google.com, 49723 <at> debbugs.gnu.org
> Date: Thu, 16 Sep 2021 20:44:32 +0200
>
> >> Should this be implemented also in remote file names?
> >
> > Are we sure remote file names cannot include null bytes?
>
> Likely not. I have added "foo\0bar" as file name in tramp-test.el, and
> then I get
>
> --8<---------------cut here---------------start------------->8---
> Test tramp-test41-special-characters condition:
> (ert-test-failed
> ((should
> (file-exists-p file1))
> :form
> (file-exists-p "/mock:gandalf:/tmp/tramp-testkLeKOx/foo\0bar")
> :value nil))
> FAILED 1/1 tramp-test41-special-characters (0.484141 sec)
>
> --8<---------------cut here---------------end--------------->8---
>
> Well, perhaps Tramp can be improved to handle null bytes on (remote)
> shell level, but do we need this?
I'm not sure.
This bug report was last modified 3 years and 299 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.