From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23153 invoked from network); 1 Dec 2021 15:24:15 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 1 Dec 2021 15:24:15 -0000 Received: (qmail 19758 invoked by uid 550); 1 Dec 2021 15:24:13 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 19725 invoked from network); 1 Dec 2021 15:24:13 -0000 Date: Wed, 1 Dec 2021 10:24:00 -0500 From: Rich Felker To: Kaihang Zhang Cc: musl@lists.openwall.com, 2010267516@qq.com Message-ID: <20211201152359.GG7074@brightrain.aerifal.cx> References: <20211015122000.2490-1-kaihang.zhang@smartx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015122000.2490-1-kaihang.zhang@smartx.com> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] [PATCH v2] fix: Truncate the too-long mntent in function getmntent_r On Fri, Oct 15, 2021 at 08:20:00AM -0400, Kaihang Zhang wrote: > In function getmntent_r in source misc/mntent.c, entry that is too long > will be truncated rather than discarded. The caller can tell by errno > whether the supplied buffer is too small, and retry from the beginning > of the file. Thanks for resending this. I know I've neglected to take a good look at it so far, and I'll try to get to it right away this time. Rich