PR422261 platform selection fails for unqualified client name

Bug introduced with commit f15beea76
"Fix memory leak in launcher-linux.c"

Need to try opening the actual 'client' path, not just the 'clientname'
file name.

Reported-by: Michael Wojcik <michael.wojcik@microfocus.com>

https://bugs.kde.org/show_bug.cgi?id=422261
This commit is contained in:
Mark Wielaard 2021-02-04 16:14:00 +01:00
parent 7ada4d26d7
commit f7e87e6ae3
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -63,6 +63,7 @@ n-i-bz helgrind: If hg_cli__realloc fails, return NULL.
(actually affected all x86 and nanomips regardless of host bitness)
415293 Incorrect call-graph tracking due to new _dl_runtime_resolve_xsave*
422174 unhandled instruction bytes: 0x48 0xE9 (REX prefixed JMP instruction)
422261 platform selection fails for unqualified client name
422623 epoll_ctl warns for uninitialized padding on non-amd64 64bit arches
423021 PPC: Add missing ISA 3.0 documentation link and HWCAPS test.
424298 amd64: Implement RDSEED

View File

@ -158,7 +158,7 @@ static const char *select_platform(const char *clientname)
if (strcmp (client, clientname) != 0)
VG_(debugLog)(2, "launcher", "selecting platform for '%s'\n", client);
if ((fd = open(clientname, O_RDONLY)) < 0) {
if ((fd = open(client, O_RDONLY)) < 0) {
return_null:
free (client);
return NULL;