[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251112114725.287349-1-wangyuli@aosc.io>
Date: Wed, 12 Nov 2025 19:47:25 +0800
From: WangYuli <wangyuli@...c.io>
To: kees@...nel.org,
nathan@...nel.org,
nicolas@...sle.eu
Cc: linux-hardening@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-kbuild@...r.kernel.org,
WangYuli <wangyl5933@...naunicom.cn>,
WangYuli <wangyuli@...c.io>
Subject: [PATCH] fortify: Ignore intermediate *.tmp files
From: WangYuli <wangyl5933@...naunicom.cn>
The test_fortify.sh script generates logs of build-time warnings
for string and memory functions. To ensure the final log file is
updated atomically, the script first writes its output to a temporary
file with a .log.tmp extension. Upon successful completion, this
temporary file is renamed to the final .log file.
If the build process is interrupted before this rename operation,
these *.log.tmp intermediate files will be left in the directory,
creating a risk of them being accidentally added to the git repository.
To prevent this from happening, add *.tmp to the .gitignore file to
explicitly ignore these temporary files.
Signed-off-by: WangYuli <wangyl5933@...naunicom.cn>
Signed-off-by: WangYuli <wangyuli@...c.io>
---
lib/test_fortify/.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/test_fortify/.gitignore b/lib/test_fortify/.gitignore
index c1ba37d14b50..8056bc75b442 100644
--- a/lib/test_fortify/.gitignore
+++ b/lib/test_fortify/.gitignore
@@ -1,2 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
/*.log
+/*.tmp
--
2.51.0
Powered by blists - more mailing lists