* [musl] Bug in mntent.c: whitespace characters are not escaped
@ 2021-12-14 9:01 Daniel Gerber
0 siblings, 0 replies; only message in thread
From: Daniel Gerber @ 2021-12-14 9:01 UTC (permalink / raw)
To: musl
Hello,
The musl implementation of getmntent does not handle octal escape sequences
as the manual getmntent(3) says:
> Since fields in the mtab and fstab files are separated by
> whitespace, octal escapes are used to represent the characters
> space (\040), tab (\011), newline (\012), and backslash (\\) in
> those files when they occur in one of the four strings in a
> mntent structure. The routines addmntent() and getmntent() will
> convert from string representation to escaped representation and
> back. When converting from escaped representation, the sequence
> \134 is also converted to a backslash.
(See resulting bug <https://github.com/libfuse/libfuse/issues/634>.)
Best,
Daniel Gerber
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-14 11:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-14 9:01 [musl] Bug in mntent.c: whitespace characters are not escaped Daniel Gerber
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).