freebsd-dev/usr.bin/mktemp
Kyle Evans a6346c02f6 mktemp: don't double up on trailing slashes for -t paths
This is a minor cosmetic change; re-organize slightly to set tmpdir to
_PATH_TMP if we didn't otherwise have a tmpdir candidate, then check the
trailing char before appending another slash.

While we're here, remove some bogus whitespace and add a test case for
this change.

Obtained from:	https://github.com/apple-oss-distributions/shell_cmds
Sponsored by:	Klara, Inc.
2022-11-02 21:42:57 -05:00
..
tests mktemp: don't double up on trailing slashes for -t paths 2022-11-02 21:42:57 -05:00
Makefile mktemp: add -p/--tmpdir argument 2022-10-30 22:55:46 -05:00
Makefile.depend
mktemp.1 mktemp: add -p/--tmpdir argument 2022-10-30 22:55:46 -05:00
mktemp.c mktemp: don't double up on trailing slashes for -t paths 2022-11-02 21:42:57 -05:00