From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 107BE386EC78; Sun, 14 Mar 2021 07:06:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 107BE386EC78 From: "ssh at pobox dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/99533] "operation not permitted" error on recursive_directory_iterator despite skip_permission_denied Date: Sun, 14 Mar 2021 07:05:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssh at pobox dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2021 07:06:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99533 --- Comment #5 from Steffen Schuemann --- Thank you for looking into this and sorry for the namespace issue, I was to greedy when deleting the preprocessor parts that switched between my implementation and std::filesystem. First of all, I'm with you in thinking the macOS issue is more of an os problem, but knowing the chances that this gets fixed on Apples side, especially for anything older than Big Sur, I hoped that a fix/workaround on GCC/LLVM side would be a much better chance. Thanks for the changes, I'll t= ry to test macOS later this day.=20 And thank you for pointing out that the situation under Linux is in fact not the same. You are right. Sadly I was fooled to believe it is, while compari= ng the behavior with my implementation but after some debugging the reason mine iterates through /proc/1/task/1/cwd without an error is actually a bug on my side. So I have to thank you for helping me find that one. So to recap: EPERM issue is indeed macOS only, not Linux!=