freebsd-dev/usr.sbin/config
Kyle Evans f518229d55 config: fix some common issues with path() usage
None of the callers check that the allocation in path() failed, so let's
check in path() and abort instead of failing.

Along those lines, none of the callers seem to acknowledge that the
returned string needs to be free()d -- let's do that as well.  There are
a couple not addressed in this commit that will be addressed in a future
commit by pushing the path() call down into moveifchanged() instead and
freeing it properly there.

CID:	1505271, 1505250, 1505279
Reviewed by:	emaste, imp
2023-02-16 14:36:16 -06:00
..
config.5 config(5): drop mention of mips 2022-10-17 15:12:12 -03:00
config.8 Indicate which port gdb.1 and kgdb.1 come from. 2022-08-17 19:13:22 +02:00
config.h config: drop dependency on libsbuf 2023-02-08 22:56:10 -06:00
config.y config(8): Remove obsolete 'config' directive. 2021-06-17 15:17:18 -06:00
configvers.h config: Add no-ctfconvert support. 2020-04-28 16:09:22 +00:00
kernconf.tmpl
lang.l config(8): Remove obsolete 'config' directive. 2021-06-17 15:17:18 -06:00
main.cc config: fix some common issues with path() usage 2023-02-16 14:36:16 -06:00
Makefile config: drop dependency on libsbuf 2023-02-08 22:56:10 -06:00
Makefile.depend
mkheaders.c config: Fix typo in comment. 2021-02-01 13:13:36 -08:00
mkmakefile.cc config: drop dependency on libsbuf 2023-02-08 22:56:10 -06:00
mkoptions.cc config: fix some common issues with path() usage 2023-02-16 14:36:16 -06:00