Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
show more ...
mktemp: skip later TMPDIR check if -p is specifiedWe already did the necessary $TMPDIR fallback, if it's going to be used.Skip the later check so that we don't accidentally override our -pargumen
mktemp: skip later TMPDIR check if -p is specifiedWe already did the necessary $TMPDIR fallback, if it's going to be used.Skip the later check so that we don't accidentally override our -pargument.Fixes: ac6f924e1c ("mktemp: add -p/--tmpdir argument")Sponsored by: Klara, Inc.
mktemp: don't double up on trailing slashes for -t pathsThis 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 t
mktemp: don't double up on trailing slashes for -t pathsThis 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 thetrailing char before appending another slash.While we're here, remove some bogus whitespace and add a test case forthis change.Obtained from: https://github.com/apple-oss-distributions/shell_cmdsSponsored by: Klara, Inc.
mktemp: add -p/--tmpdir argumentThis matches other mktemp implementations, including OpenBSD and GNU.The -p option can be used to provide a tmpdir prefix for specifiedtemplates. Precedence works
mktemp: add -p/--tmpdir argumentThis matches other mktemp implementations, including OpenBSD and GNU.The -p option can be used to provide a tmpdir prefix for specifiedtemplates. Precedence works out like so:-t flag:- $TMPDIR- -p directory- /tmpImplied -t flag (no arguments or only -d flag):- -p directory- $TMPDIR- /tmpSome tests have been added for mktemp(1) in the process.Reviewed by: imp (earlier version), woschSponsored by: Klara, Inc.Differential Revision: https://reviews.freebsd.org/D37121