edit-util: do not try to recreate temp file if missing
authorMike Yuan <me@yhndnzj.com>
Sun, 11 Aug 2024 13:41:30 +0000 (15:41 +0200)
committerMike Yuan <me@yhndnzj.com>
Mon, 12 Aug 2024 14:06:37 +0000 (16:06 +0200)
commit3b5b2ff8fa6413afc2e5a058ea8281a58a4c691d
tree568038e52a642d09834b5c5f1b42fc9c6158f094
parent7a729f876b2494e2f1d1def73b828a9b70dd4723
edit-util: do not try to recreate temp file if missing

We initially read from temp file, then strip it, and write
back to it. If the file suddenly disappeared during the process,
it indicates someone else is touching our temp file
behind our back. Let's not silently continue.
src/shared/edit-util.c