diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-07-13 03:20:45 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-07-14 01:36:05 +0200 |
commit | 17689cc9bf52feb5d31fdbf279f6137f1d6446cb (patch) | |
tree | d25dde3bae0ea05538286e03ea1be88af4096e13 /test/distro/debian | |
parent | 30ac86823ba0f4b80e83a6bd8ccc562f0d79b9c9 (diff) | |
download | passt-17689cc9bf52feb5d31fdbf279f6137f1d6446cb.tar passt-17689cc9bf52feb5d31fdbf279f6137f1d6446cb.tar.gz passt-17689cc9bf52feb5d31fdbf279f6137f1d6446cb.tar.bz2 passt-17689cc9bf52feb5d31fdbf279f6137f1d6446cb.tar.lz passt-17689cc9bf52feb5d31fdbf279f6137f1d6446cb.tar.xz passt-17689cc9bf52feb5d31fdbf279f6137f1d6446cb.tar.zst passt-17689cc9bf52feb5d31fdbf279f6137f1d6446cb.zip |
arch, passt: Use executable link to form AVX2 binary path
...instead of argv[0], which might or might not contain a valid path
to the executable itself. Instead of mangling argv[0], use the same
link to find out if we're already running the AVX2 build where
supported.
Alternatively, we could use execvpe(), but that might result in
running a different installed version, in case e.g. the set of
binaries is present in both /usr/bin and /usr/local/bin, with both
being in $PATH.
Reported-by: Wenli Quan <wquan@redhat.com>
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2101310
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/distro/debian')
0 files changed, 0 insertions, 0 deletions