mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: Rich Felker <dalias@libc.org>
Cc: Alyssa Ross <hi@alyssa.is>, musl@lists.openwall.com
Subject: Re: [musl] [PATCH libc-test v3] functional: add mntent test
Date: Wed, 23 Oct 2024 00:17:19 +0200	[thread overview]
Message-ID: <20241022221719.GI2724612@port70.net> (raw)
In-Reply-To: <20241022163627.GR10433@brightrain.aerifal.cx>

* Rich Felker <dalias@libc.org> [2024-10-22 12:36:29 -0400]:
> On Tue, Oct 22, 2024 at 02:12:52PM +0200, Alyssa Ross wrote:
> > Szabolcs Nagy <nsz@port70.net> writes:
> > 
> > > * Alyssa Ross <hi@alyssa.is> [2024-10-19 20:16:39 +0200]:
> > >> This only checks reading an fstab from an stream.  I haven't written
> > >> tests for setmntent(), addmntent(), or hasmntnent().
> > >> 
> > >> test_getmntent exposes a bug in musl 1.2.3 where lines omitting the
> > >> final two fields, which are supposed to be optional according to
> > >> fstab(5), are not accepted.  It also exposes a current bug, where if
> > >> the numeric fields are omitted, the last field seen will have a
> > >> newline appended to its value.  The tests all pass on Glibc.
> > >> ---
> > >> v3: updated description for current musl
> > >> v2: https://inbox.vuxu.org/musl/20210821085420.474615-3-hi@alyssa.is/
> > >> 
> > >> Previously I had a second, optional patch, that would have tested the 
> > >> behavior of a single-field mntent entry.  I've dropped that one, because
> > >> musl chose not to match Glibc in accepting it.
> > >> 
> > >
> > > patch looks ok. it fails with
> > >
> > > src/functional/mntent.c:47: !strcmp(m->mnt_opts, "defaults") failed
> > > FAIL src/functional/mntent-static.exe [status 1]
> > > src/functional/mntent.c:47: !strcmp(m->mnt_opts, "defaults") failed
> > > FAIL src/functional/mntent.exe [status 1]
> > >
> > > i guess this should be fixed
> > 
> > Fix has already been submitted here:
> > https://inbox.vuxu.org/musl/20241019181320.23977-2-hi@alyssa.is/
> > 
> > I think it should pass on musl 1.2.4.
> 
> Yep, thanks. I'll get this and some other new stuff committed.

ok. i committed the libc-test patch.

      reply	other threads:[~2024-10-22 22:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-19 18:16 Alyssa Ross
2024-10-22 10:03 ` Szabolcs Nagy
2024-10-22 12:12   ` Alyssa Ross
2024-10-22 16:36     ` Rich Felker
2024-10-22 22:17       ` Szabolcs Nagy [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=20241022221719.GI2724612@port70.net \
    --to=nsz@port70.net \
    --cc=dalias@libc.org \
    --cc=hi@alyssa.is \
    --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).