From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CEFCD3858D3C; Mon, 16 Jan 2023 08:51:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CEFCD3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673859068; bh=Twa63xNRqFsMngmdnJGQtBrTOhP4txp6x1xcEgAwU0E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OcAFwJLysUwoYKXhiB7WGOiYFKpsYUVtLXuMxmexrNxDnPYYDtDC7zJT1mGSht/pq hFKgUqZko8hWiPCLlLxeOoltB52gFqN7dDSWrpYAXZOXrKXLWSk2uGW9qDdszlt+pD efS20IVPsj+2qV4y3mTHpHy8EEpMuVtkmmwbEDec= From: "i.nixman at autistici dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/108350] Windows: invoking gcc via symlink does not work Date: Mon, 16 Jan 2023 08:51:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 12.2.0 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=3D108350 --- Comment #21 from niXman --- another strange problem is that `CreateFile()` is able to open the special = file `nul` for reading, but `GetFinalPathNameByHandle()` cannot get the full nam= e of this file and returns 0 and setting `last error` to `ERROR_INVALID_PARAMETE= R`. and so you don't get bored I'll add: `GetFullPathName()` can get the full n= ame of such a file. (how could this happen? %) )=