Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87plns9vzv.fsf@alyssa.is>
Date: Tue, 22 Oct 2024 14:12:52 +0200
From: Alyssa Ross <hi@...ssa.is>
To: Szabolcs Nagy <nsz@...t70.net>
Cc: musl@...ts.openwall.com
Subject: Re: [PATCH libc-test v3] functional: add mntent test

Szabolcs Nagy <nsz@...t70.net> writes:

> * Alyssa Ross <hi@...ssa.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.

Download attachment "signature.asc" of type "application/pgp-signature" (833 bytes)

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.