opnsense-src/usr.bin/mktemp
Kyle Evans fa4ac142ef 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.

(cherry picked from commit a6346c02f6)
2022-11-12 23:37:36 -06:00
..
tests mktemp: don't double up on trailing slashes for -t paths 2022-11-12 23:37:36 -06:00
Makefile mktemp: add -p/--tmpdir argument 2022-11-12 23:37:29 -06:00
Makefile.depend
mktemp.1 mktemp: add -p/--tmpdir argument 2022-11-12 23:37:29 -06:00
mktemp.c mktemp: don't double up on trailing slashes for -t paths 2022-11-12 23:37:36 -06:00