mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
If running with "-K" really do not information about symbols from the a.out
argument. Before this fix, after searching the currently-running kernel, we would still search the a.out argument - completely override the in-kernel list, essentially defeating the K flag's purpose. PR: 47387 Submitted by: Ryan Beasley <ryanb@goddamnbastard.org>
This commit is contained in:
parent
e71400183d
commit
03ce187564
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187116
@ -165,7 +165,7 @@ main(argc, argv)
|
||||
* get information from the executable file.
|
||||
*/
|
||||
if ((Kflag && kernel_getnfile(a_outname, &defaultEs) == -1) ||
|
||||
(elf_getnfile(a_outname, &defaultEs) == -1 &&
|
||||
(!Kflag && elf_getnfile(a_outname, &defaultEs) == -1 &&
|
||||
aout_getnfile(a_outname, &defaultEs) == -1))
|
||||
errx(1, "%s: bad format", a_outname);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user