From nobody Wed Mar 09 21:10:12 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 63B2519F1803 for ; Wed, 9 Mar 2022 21:10:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KDPwh1gt1z3lbB for ; Wed, 9 Mar 2022 21:10:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1772918042 for ; Wed, 9 Mar 2022 21:10:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 229LACZk052759 for ; Wed, 9 Mar 2022 21:10:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 229LACf0052758 for bugs@FreeBSD.org; Wed, 9 Mar 2022 21:10:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262038] fts(3): Check for readdir(3) errors Date: Wed, 09 Mar 2022 21:10:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch, patch-ready X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ma.mandourr@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646860212; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I6bkDJBpEEslaZsiwligZEHQoPk1bPDA4LkE7UwOlYo=; b=utpFM0zGCyR+britt33+zL5UDecXPIzdjbmjnH4+cNapHzG1VENC+/YiwJAejYFfIMf8Tg booxrlzkMTbUvQDDnYZPFF2JnJmFt5otEZZ5MYw3OtWsu0jrBSUdxa2M8MmQItT+M0zt+H RNLxLjf/PtM5Kf/CIFWUQS5szE9tC247S4sb+foOoiJHIg+Bj2oj98ep/6AP2tCCjASe+o vqoXueWW0XRXqdObXu66Xhe3LS9213zvuTs15iZ2ok9E9KEBGO5Or/lzUnLd+YQu3sP9cE cevB/4FFFEfVGpWOBH41ZBblpoKzEqHjxbDrOcI9Xwc8rJQKXrD33SL5varmxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646860212; a=rsa-sha256; cv=none; b=I1YLd5GCfhHXV5dmwGsVlranGABt2/jrbLGpfOETGxzmCHNGOf4KtaEw+95N06yoYxLNrf Y0XM2wB+w5g4tXd9kCAWb7uYTWiXmiYtlrhrYK5IZOhUdbi4TcVoVDKAv1LOoLhaY3Wy7i z9gOkiyUyACetwrwSQ3wnOpe2P6llupdys5KKPj5XsLKG4c6MM5Ul+JgJhX5jVMBMUMgq6 GINjvAgDexoRXtZCzJY60lmbVUlx4F/ARIEPfxFA9DYwq6pxrenZC1uxUUvSYE/ORj8nHE yXdSV6Sv40lZmuN26Ccj9H5uEuUDdn/2Mts1c8C64e8RzIPRlLxXR6GNVCti3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262038 --- Comment #6 from Mahmoud Abumandour --- Created attachment 232355 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232355&action= =3Dedit Check for readdir errors in fts Fix the bug for fts.c, fts-compat.c, and fts-compat11.c. I followed Mark's advice on setting a separate readdir errno integer in `fts_safe_readdir`, a= nd checking for errors using it. I also preferred to unify the interface of th= at function regardless of using either `readdir()` or `freebsd11_readdir()`. I would be happy to address any modification requests if there are any. --=20 You are receiving this mail because: You are the assignee for the bug.=