From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A865C3858D28; Tue, 17 Jan 2023 07:06:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A865C3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673939177; bh=PT/OrlsZ99DAnCzl26P0JHpN2IImA8gMSvjjHjIkABA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ra/ujP4RVM0rk/jdJjLwgFwj3gr4riGcwb2GPWYsYyzDzy3+waALtysqL6cIhRxS6 sk0ik/MMiDhOnqHX9Bmzx8Yo86lx9U8qqtkAgCgQHaMC2kaWCHXRVj/SW+YdFu/AMp XPgHofHtq2bINZrSUZKZn6x+v393YgCWrS2+PZRQ= From: "i.nixman at autistici dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/108276] libiberty unlink_if_ordinary does not handle Windows nul device correctly Date: Tue, 17 Jan 2023 07:06:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: i.nixman at autistici dot org X-Bugzilla-Status: UNCONFIRMED 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108276 --- Comment #6 from niXman --- I think you don't understand me. with your patch after preprocessing the `unlink_if_ordinary()` will look li= ke: ``` int unlink_if_ordinary (const char *name) { if (stricmp (name, "nul") =3D=3D 0) return 1; return 1; } ``` don't you think it's strange?=