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
expand_number.3
expand_number.c
flopen.3
flopen.c
fparseln.3
fparseln.c
gr_util.c
hexdump.3
hexdump.c
humanize_number.3
humanize_number.c
kinfo_getallproc.3
kinfo_getallproc.c
kinfo_getfile.3
kinfo_getfile.c
kinfo_getproc.3
kinfo_getproc.c
kinfo_getvmmap.3
kinfo_getvmmap.c
kinfo_getvmobject.3 Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
kinfo_getvmobject.c
kld.3
kld.c
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
login_cap.h
login_class.3
login_class.c
login_crypt.c
login_ok.3
login_ok.c
login_times.3
login_times.c
login_tty.3
login_tty.c
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
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
pty.3 pty.3: Add a HISTORY section 2018-06-02 22:40:16 +00:00
pty.c
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
stub.c
trimdomain.3
trimdomain.c
uucplock.3
uucplock.c