freebsd-dev/sbin/swapon
Ed Schouten e47c947e6e 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
2016-05-31 06:45:19 +00:00
..
Makefile Explicitly add more files to the 'runtime' package. 2016-02-09 20:19:31 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
swapon.8 - Purge one more reference to ad(4)[1]. 2013-11-22 12:09:15 +00:00
swapon.c Stop using the non-standard basename_r() function. 2016-05-31 06:45:19 +00:00