freebsd_amp_hwpstate/usr.sbin/kldxref
Mina Galić f4613af424 kldxref: Fix maketempfile function's way of finding the root dir
Rather than assuming that the "root" is passed as directory and will be
marked by a trailing slash, we just assume that the directory, which has
been checked previously to be a directory, is a directory.

This fixes an inconsistency between `kldxref /boot/modules`, which tries
to create the temp file in `/boot/`, and `kldxref /boot/modules/`, which
tries to create it in `/boot/modules/` itself.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1093
2024-02-02 08:35:49 -07:00
..
Makefile
Makefile.depend
ef.c kldxref: Workaround incorrect PT_DYNAMIC in existing powerpc kernels 2024-01-09 10:57:48 -08:00
ef.h kldxref: Workaround incorrect PT_DYNAMIC in existing powerpc kernels 2024-01-09 10:57:48 -08:00
ef_aarch64.c
ef_amd64.c
ef_arm.c
ef_i386.c
ef_mips.c
ef_obj.c
ef_powerpc.c
ef_riscv.c
elf.c
fileformat
kldxref.8 kldxref: Be more conservative about what we reject. 2024-01-28 21:45:23 -07:00
kldxref.c kldxref: Fix maketempfile function's way of finding the root dir 2024-02-02 08:35:49 -07:00