Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Sun, 16 Aug 2020 09:31:32 +0000
From: "maksis ." <maksis@...enaline-network.com>
To: "musl@...ts.openwall.com <musl@...ts.openwall.com>"
	<musl@...ts.openwall.com>
Subject: getmntent and unescaping special characters

Hi,

Looks like getmntent doesn't unescape certain special characters (such as whitespaces) in mount paths, which causes my application to behave incorrectly with such paths (and assumably there are also other applications that are expecting the standard behavior).

>From https://man7.org/linux/man-pages/man3/getmntent.3.html:

       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.

Is that something that could also be implemented in musl?

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.