Skip to content

Commit ccfe7d6

Browse files
Nicolas Schierkees
authored andcommitted
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>
1 parent 995ddc5 commit ccfe7d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/test_fortify/test_fortify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ WANT="__${FILE%%-*}"
1717
# Argument 2: Where to write the build log.
1818
OUT="$1"
1919
shift
20-
TMP="${OUT}.tmp"
20+
TMP="${OUT%/*}/.${OUT##*/}.tmp"
2121

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

0 commit comments

Comments
 (0)