summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2016-05-31 06:45:19 +0000
committered <ed@FreeBSD.org>2016-05-31 06:45:19 +0000
commit12cc424125e73bc7b3a2e8a26a233291ff2a6b8a (patch)
tree13d7cc1c3d73a5c83582a0ef5d5524808cd31e10 /usr.bin
parentb504edd9ef4d37f1250c07842a56d539829bae0d (diff)
downloadFreeBSD-src-12cc424125e73bc7b3a2e8a26a233291ff2a6b8a.zip
FreeBSD-src-12cc424125e73bc7b3a2e8a26a233291ff2a6b8a.tar.gz
Stop using the non-standard basename_r() function.
This change makes the code use the POSIX basename() function. It has the advantage that (if implemented correctly), it also imposes no restrict on the pathname length. Notice that I haven't added any error handling to the strdup() call. It looks like none of the other calls to strdup() and malloc() performed by this utility do it either. Reviewed by: hrs Differential Revision: https://reviews.freebsd.org/D6626
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud