Commit 7b4314b
committed
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
0 commit comments