Commit ccfe7d62 authored by Nicolas Schier's avatar Nicolas Schier Committed by Kees Cook
Browse files

fortify: Rename temporary file to match ignore pattern



test_fortify.sh uses a temporary file that might appear as untracked
file in some rare sitations.  Rename it to match one of top-level's
gitignore patterns.

Reported-by: default avatarWangYuli <wangyuli@aosc.io>
Closes: https://lore.kernel.org/linux-kbuild/20251112114725.287349-1-wangyuli@aosc.io/


Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Reviewed-by: default avatarWangYuli <wangyuli@aosc.io>
Signed-off-by: default avatarNicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20260114-fortify-improve-handling-of-tempfile-v2-1-63b86c4dbd0e@kernel.org


Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent 995ddc58
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ WANT="__${FILE%%-*}"
# Argument 2: Where to write the build log.
OUT="$1"
shift
TMP="${OUT}.tmp"
TMP="${OUT%/*}/.${OUT##*/}.tmp"

# Argument 3: Path to "nm" tool.
NM="$1"