Home
last modified time | relevance | path

Searched hist:e47c947e6e9a04de4731f1235a46fb21b0c27caa (Results 1 – 1 of 1) sorted by relevance

/freebsd/sbin/swapon/
H A Dswapon.cdiff e47c947e6e9a04de4731f1235a46fb21b0c27caa Tue May 31 08:45:19 CEST 2016 Ed Schouten <ed@FreeBSD.org> 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