mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Alex Xu (Hello71)" <alex_y_xu@yahoo.ca>
To: musl@lists.openwall.com
Cc: Keyu Tao <taoky@mail.ustc.edu.cn>
Subject: Re: [musl] getmntent() fails to parse when source is empty string
Date: Sun, 10 Apr 2022 12:00:04 -0400	[thread overview]
Message-ID: <1649605497.38rdgg2ifl.none@localhost> (raw)
In-Reply-To: <e666541d-251d-db68-838a-9fedf473a7ca@mail.ustc.edu.cn>

It's worth noting that octal escape sequences are also not supported. 
This has been reported previously, e.g. at:

https://inbox.vuxu.org/musl/HE1P192MB0010D60AAC4BA0F08F1A5644FB5E0@HE1P192MB0010.EURP192.PROD.OUTLOOK.COM/

https://inbox.vuxu.org/musl/87o85j8sru.fsf@atufi.org/

I think the empty source is basically impossible to support with 
getmntent though. Both the glibc and musl implementations ignore leading 
whitespace, probably because getmntent is more commonly used with fstab, 
where users may have unintentional leading whitespace. If empty sources 
are an issue for your program, I would suggest using your own getmntent 
implementation.

  reply	other threads:[~2022-04-10 16:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-05 17:09 Keyu Tao
2022-04-10 16:00 ` Alex Xu (Hello71) [this message]
2022-04-10 16:39   ` Keyu Tao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1649605497.38rdgg2ifl.none@localhost \
    --to=alex_y_xu@yahoo.ca \
    --cc=musl@lists.openwall.com \
    --cc=taoky@mail.ustc.edu.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).