commit b5a1fa8b33f6560a3b41876ccce5030693e75b09ee2efcd53952967bf1ef37d7 from: Stefan Sperling date: Fri Jan 30 10:05:18 2026 UTC make gotsys-write-conf remove the temporary gotwebd.conf file on failure commit - 9e4d9146633511c1abab9d3f33e4279a588468368562f58b8a4f9876e9d734ac commit + b5a1fa8b33f6560a3b41876ccce5030693e75b09ee2efcd53952967bf1ef37d7 blob - d24c5455ee34c724ac68c046fde9cdd26f3f708f8752631233f3a6a78b70ec81 blob + 74fedec8018ecef00a854568e6507768a2d79d901ceb135d6c52c8bf7aa04701 --- gotsysd/libexec/gotsys-write-conf/gotsys-write-conf.c +++ gotsysd/libexec/gotsys-write-conf/gotsys-write-conf.c @@ -2486,6 +2486,10 @@ done: err == NULL) err = got_error_from_errno2("unlink", gotd_secrets_tmppath); free(gotd_secrets_tmppath); + if (gotwebd_conf_tmppath && unlink(gotwebd_conf_tmppath) == -1 && + err == NULL) + err = got_error_from_errno2("unlink", gotwebd_conf_tmppath); + free(gotwebd_conf_tmppath); if (gotd_conf_tmpfd != -1 && close(gotd_conf_tmpfd) == -1 && err == NULL) err = got_error_from_errno("close");