freebsd-nq/usr.sbin/services_mkdb
Ed Schouten c200e14277 Invoke the dirname() function in a POSIX compliant way.
POSIX requires that the argument of dirname() is of type "char *". In
other words, the input buffer can be modified by the function to store
the directory name.

Pull a copy of the string before calling dirname(). We don't care about
freeing up the memory afterwards, as this is done at the very bottom of
main(), right before the program terminates.

Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D6628
2016-05-29 10:41:27 +00:00
..
extern.h
Makefile Replace fparseln(3) with getline(3) to remove dependency on libutil 2016-05-09 20:04:22 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
services_mkdb.8
services_mkdb.c Invoke the dirname() function in a POSIX compliant way. 2016-05-29 10:41:27 +00:00
uniq.c