* modules/md/md_util.c (md_text_fcreatex): Return the status of the
write and the close. The permissions were set a second time here,
overwriting the status; md_util_fcreatex() already sets them.
(md_util_freplace): Keep the status of the last file creation, so a
failure to create the temporary file can no longer be reported as
success and have the write use an uninitialized handle. Remove the
temporary file when the write fails too, not only on rename failure.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GitHub: closes #768
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1938499 13f79535-47bb-0310-9956-ffa450edef68
1 file changed