Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: WangYuli <wangyuli@aosc.io>
Closes: https://lore.kernel.org/linux-kbuild/20251112114725.287349-1-wangyuli@aosc.io/
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: WangYuli <wangyuli@aosc.io>
Signed-off-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20260114-fortify-improve-handling-of-tempfile-v2-1-63b86c4dbd0e@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>

authored by

Nicolas Schier and committed by
Kees Cook
ccfe7d62 995ddc58

+1 -1
+1 -1
lib/test_fortify/test_fortify.sh
··· 17 17 # Argument 2: Where to write the build log. 18 18 OUT="$1" 19 19 shift 20 - TMP="${OUT}.tmp" 20 + TMP="${OUT%/*}/.${OUT##*/}.tmp" 21 21 22 22 # Argument 3: Path to "nm" tool. 23 23 NM="$1"