mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: Rich Felker <dalias@libc.org>, "(GalaxyMaster)" <galaxy@openwall.com.au>
Cc: musl@lists.openwall.com, 2010267516@qq.com,
	Kaihang Zhang <kaihang.zhang@smartx.com>
Subject: [musl] Changes to getmntent
Date: Wed, 27 Oct 2021 14:34:49 +0000	[thread overview]
Message-ID: <87sfwmtu2e.fsf@alyssa.is> (raw)
In-Reply-To: <20211012125942.GH7074@brightrain.aerifal.cx>

[-- Attachment #1: Type: text/plain, Size: 2093 bytes --]

Rich Felker <dalias@libc.org> writes:

> Yes. There are actually several conflicting proposed changes to this
> (frustratingly underspecified, and with bad behavior by glibc)
> function, and so far there's been little engagement between different
> people who want it changed/fixed to resolve the differences. I would
> really like to see from at least one party who wants it changed a
> summary of what the differences are between the different proposals,
> what musl is doing now, and what glibc is doing now, and
> justifications for why their preferred one is okay (including
> capability for applications to recover and not silently use wrong data
> -- "glibc lets them silently use wrong data" isn't a justification).
>
> Rich

Hi, I'm somebody who has proposed changes to getmntent recently, so here
I am specifying what I'd like it to do:

 • Lines starting with "#" should be skipped.
 • Empty lines should be skipped.
 • The fifth and sixth fields should be optional.

All of these changes are things that glibc does today, and musl does
not.

Hopefully it's pretty obvious why the first two are good ideas.  As for
the third, I think it's a change to be made because the last two fields
(dump frequency, and pass number on parallel fsck) are obscure and not
required to mount the filesystem, and because fstab(5) says they're
optional.

The approach I've been taking so far is to send a series containing
interspersed patches to libc-test and musl, with the idea that libc-test
could be the place where we specify how genmntent should work.  Perhaps,
to accelerate the process of getting everybody on the same page, it
would be better to concentrate on getting tests into libc-test that
describe the behaviour we think musl should have, and once that's done
begin to look at changing musl's implementation to pass the test.  Would
that be a good way forward?  I'd be happy to kick things off with a
patch to libc-test that tests basic functionality and all the behaviour
changes I'd like to have made, if Rich is happy to go that way.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      parent reply	other threads:[~2021-10-27 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-12  2:36 [musl] [PATCH] fix: Assign default value to mntent when linebuf is too small Kaihang Zhang
2021-10-12  3:24 ` (GalaxyMaster)
2021-10-12 12:59   ` Rich Felker
2021-10-15  7:19     ` Kaihang Zhang
2021-10-27 14:34     ` Alyssa Ross [this message]

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=87sfwmtu2e.fsf@alyssa.is \
    --to=hi@alyssa.is \
    --cc=2010267516@qq.com \
    --cc=dalias@libc.org \
    --cc=galaxy@openwall.com.au \
    --cc=kaihang.zhang@smartx.com \
    --cc=musl@lists.openwall.com \
    /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).