diff options
author | Stefan Eßer <se@FreeBSD.org> | 2020-11-18 19:44:30 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2020-11-18 19:44:30 +0000 |
commit | 30d21d279537e46629a697908d2d207c06bc310e (patch) | |
tree | 1a3813aaa3be51504d2e5fba422cece04f79c9c8 /sys/sys | |
parent | ed0d16b01781f3d394510c898d6eeeb587c46aaa (diff) | |
download | src-test2-30d21d279537e46629a697908d2d207c06bc310e.tar.gz src-test2-30d21d279537e46629a697908d2d207c06bc310e.zip |
Add function getlocalbase() to libutil.
This function returns the path to the local software base directory, by
default "/usr/local" (or the value of _PATH_LOCALBASE in include/paths.h
when building the world).
The value returned can be overridden by 2 methods:
- the LOCALBASE environment variable (ignored by SUID programs)
- else a non-default user.localbase sysctl value
Reviewed by: hps (earlier version)
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D27236
Notes
Notes:
svn path=/head/; revision=367813
Diffstat (limited to 'sys/sys')
0 files changed, 0 insertions, 0 deletions