Files
hermes-agent/hermes_platform
Teknium 1a58dd412e fix(gateway): the Windows identity check runs System32's whoami, never a GNU copy found first
The installed-task identity check spawned whoami.exe by bare name. CreateProcess resolves a bare
name through the application directory and the current directory before the system directory, so
Git for Windows' GNU coreutils whoami.exe (usr\bin) ran instead, rejected /USER ("extra operand"),
and Desktop refused to start with service_identity_unverified.

The spawn now names System32's whoami.exe as the program to start (GetSystemDirectoryW, not
%SystemRoot%), keeping argv[0] and the failure detail unchanged. hermes_platform.resolver gains
system_tool(), taken from #144907.

Fixes #157356
Part of #146763

Co-authored-by: niukanen1 <57656076+niukanen1@users.noreply.github.com>
2026-12-01 02:53:32 -08:00
..