opnsense-src/lib/libutil
Jessica Clarke 3a46fe2261 getlocalbase: Make default path actually configurable
We include paths.h in getlocalbase.c, which defines _PATH_LOCALBASE.
This will override a definition on the command line, meaning it is
impossible to override like how the manpage says you can, and it means
the code to provide a fallback default is dead as the macro is always
defined.

Instead, introduce a new LOCALBASE_PATH macro like LOCALBASE_CTL_LEN
that can be set on the command line and will default to the system's
existing _PATH_LOCALBASE to avoid duplicating the default here.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D40975
2023-07-11 21:49:22 +01:00
..
tests Fix build with gcc12. 2023-06-13 20:24:07 -07:00
_secure_path.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
_secure_path.c
auth.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
cpuset.3 cpuset(3): Move cpuset's parselist function into libutil 2023-06-01 23:16:01 +02:00
cpuset.c cpuset(3): Move cpuset's parselist function into libutil 2023-06-01 23:16:01 +02:00
expand_number.3 expand_number: Tighten check of unit. 2023-06-12 21:08:32 -07:00
expand_number.c expand_number: Tighten check of unit. 2023-06-12 21:08:32 -07:00
flopen.3 open.3: Use .Fa where appropriate 2018-03-04 18:00:32 +00:00
flopen.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
fparseln.3
fparseln.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
getlocalbase.3 getlocalbase: Make default path actually configurable 2023-07-11 21:49:22 +01:00
getlocalbase.c getlocalbase: Make default path actually configurable 2023-07-11 21:49:22 +01:00
gr_util.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hexdump.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
hexdump.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
humanize_number.3 libutil: Fix mandoc warnings 2022-08-07 16:30:24 +02:00
humanize_number.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
kinfo_getallproc.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
kinfo_getallproc.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
kinfo_getfile.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
kinfo_getfile.c lib/libutil/kinfo_*: style cleanup 2017-01-09 00:47:23 +00:00
kinfo_getproc.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
kinfo_getproc.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
kinfo_getvmmap.3 libutil: Fix mandoc warnings 2022-08-07 16:30:24 +02:00
kinfo_getvmmap.c lib/libutil/kinfo_*: style cleanup 2017-01-09 00:47:23 +00:00
kinfo_getvmobject.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
kinfo_getvmobject.c libutil: add kinfo_getswapvmobject(3) 2021-10-26 15:50:29 +03:00
kld.3
kld.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libutil.h cpuset(3): Move cpuset's parselist function into libutil 2023-06-01 23:16:01 +02:00
login.conf.5 login.conf: document how to specify env var values with commas 2023-06-28 15:02:14 -04:00
login_auth.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
login_auth.c libutil: minor spelling fixes. 2016-05-18 15:25:45 +00:00
login_cap.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
login_cap.c Allow a comma-separated list in login class capabilities, 2023-01-14 10:48:29 -08:00
login_cap.h
login_class.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
login_class.c setclassenvironment: trim leading spaces in variable names 2021-04-12 01:05:10 +03:00
login_crypt.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
login_ok.3 Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
login_ok.c
login_times.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
login_times.c
login_tty.3 libutil: Fix mandoc warnings 2022-08-07 16:30:24 +02:00
login_tty.c Use __SCCSID() for SCCS IDs. 2018-05-23 17:02:12 +00:00
Makefile cpuset(3): Move cpuset's parselist function into libutil 2023-06-01 23:16:01 +02:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
pidfile.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
pidfile.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
property.3
property.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
pty.3 libutil: Fix mandoc warnings 2022-08-07 16:30:24 +02:00
pty.c Use __SCCSID() for SCCS IDs. 2018-05-23 17:02:12 +00:00
pw_util.3 libutil: Fix mandoc warnings 2022-08-07 16:30:24 +02:00
pw_util.c Make vipw error message less cryptic 2020-06-20 06:20:00 +00:00
quotafile.3 libutil: Fix mandoc warnings 2022-08-07 16:30:24 +02:00
quotafile.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
realhostname.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
realhostname.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
realhostname_sa.3
stub.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
trimdomain.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
trimdomain.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
uucplock.3 libutil: Document function HISTORY within the manpages 2020-06-14 05:35:02 +00:00
uucplock.c Use __SCCSID() for SCCS IDs. 2018-05-23 17:02:12 +00:00