FreeBSD/src c200e14 (r300952)usr.sbin/services_mkdb services_mkdb.c

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
DeltaFile
+3-2usr.sbin/services_mkdb/services_mkdb.c
+3-21 files

UnifiedSplitRaw