Skip to content

Commit 7b4314b

Browse files
fortify: Ignore intermediate *.tmp files
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@chinaunicom.cn> Signed-off-by: WangYuli <wangyuli@aosc.io>
1 parent ea46377 commit 7b4314b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/test_fortify/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
/*.log
3+
/*.tmp

0 commit comments

Comments
 (0)