Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tencent_B9D878C8052D75263130D11868E47D44AF0A@qq.com>
Date: Fri, 3 Sep 2021 17:57:59 +0800
From: "care" <2010267516@...com>
To: "musl" <musl@...ts.openwall.com>
Subject: Re: What if the line in /proc/mounts is too long when calling  getmntent_r?

On Sat, 28 Aug 2021 08:17:08 +0200, Wichmann wrote:
>This type of behavior is also used in other functions. readdir() returns
>a NULL pointer at end of directory and on error. And getpriority()
>returns -1 on error and if the priority currently actually is -1. So
>zeroing out errno and testing it after the call is a normal way to
>distinguish error returns and normal returns in some interfaces.
>
>The entire mntent library is non-standard, according to the manpage. So
>the only specification that exists is glibc behavior. And it skips over
>too long lines. Therefore we will have to do the same. Anyone who wants
>something else will have to write their own parser. mntent is not the
>most complicated format in the world.

I wonder if there is a final solution or a plan?
Thanks!

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.