freebsd-nq/lib/libutil
Mark Johnston a273e09cb2 Fix pidfile_open(3) to handle relative paths with multiple components.
r322369's use of basename(3) was incorrect and worked by accident so
long as the pidfile path was absolute or consisted of a single
component.  Fix the basename() usage and add a regression test.

Reported by:	0mp
Reviewed by:	cem
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D19728
2019-03-27 19:40:18 +00:00
..
tests Fix pidfile_open(3) to handle relative paths with multiple components. 2019-03-27 19:40:18 +00:00
_secure_path.3
_secure_path.c
auth.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
expand_number.3
expand_number.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
flopen.3 open.3: Use .Fa where appropriate 2018-03-04 18:00:32 +00:00
flopen.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
fparseln.3
fparseln.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
gr_util.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
hexdump.3 Fix some nroff style issue 2017-11-11 14:39:13 +00:00
hexdump.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
humanize_number.3 humanize_number(3): fix math edge case in rounding large numbers 2017-12-28 22:57:34 +00:00
humanize_number.c humanize_number(3): fix math edge case in rounding large numbers 2017-12-28 22:57:34 +00:00
kinfo_getallproc.3
kinfo_getallproc.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
kinfo_getfile.3
kinfo_getfile.c lib/libutil/kinfo_*: style cleanup 2017-01-09 00:47:23 +00:00
kinfo_getproc.3
kinfo_getproc.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
kinfo_getvmmap.3 Add caveat to kinfo_getvmmap(3) explaining high CPU utilisation. 2017-08-18 16:42:58 +00:00
kinfo_getvmmap.c lib/libutil/kinfo_*: style cleanup 2017-01-09 00:47:23 +00:00
kinfo_getvmobject.3 Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
kinfo_getvmobject.c When sysctlbyname fails, free buf before returning. 2017-06-01 16:44:39 +00:00
kld.3
kld.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
libutil.h Make pw_scan(3) more compatible with getpwent(3) et. al. when processing 2018-07-26 18:34:38 +00:00
login_auth.3
login_auth.c
login_cap.3
login_cap.c lib: initial use of reallocarray(3). 2017-04-21 19:27:33 +00:00
login_cap.h
login_class.3
login_class.c
login_crypt.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
login_ok.3
login_ok.c
login_times.3
login_times.c
login_tty.3
login_tty.c Use __SCCSID() for SCCS IDs. 2018-05-23 17:02:12 +00:00
login.conf.5
Makefile Stop exporting __pw_scan and __pw_initpwd as freebsd-private libc functions 2018-07-27 19:47:42 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
pidfile.3
pidfile.c Fix pidfile_open(3) to handle relative paths with multiple components. 2019-03-27 19:40:18 +00:00
property.3
property.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
pty.3 pty.3: Add a HISTORY section 2018-06-02 22:40:16 +00:00
pty.c Use __SCCSID() for SCCS IDs. 2018-05-23 17:02:12 +00:00
pw_util.3 Make pw_scan(3) more compatible with getpwent(3) et. al. when processing 2018-07-26 18:34:38 +00:00
pw_util.c Make pw_scan(3) more compatible with getpwent(3) et. al. when processing 2018-07-26 18:34:38 +00:00
quotafile.3
quotafile.c r343881 had an uninitialized error. This fixes that. 2019-02-07 22:10:20 +00:00
realhostname_sa.3
realhostname.3
realhostname.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
stub.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
trimdomain.3
trimdomain.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
uucplock.3
uucplock.c Use __SCCSID() for SCCS IDs. 2018-05-23 17:02:12 +00:00