Commit Diff
--- gotd/repo_write.c +++ gotd/repo_write.c @@ -2166,6 +2166,8 @@ render_notification(struct imsg *imsg, struct gotd_ims iev, fd); break; } + if (err != NULL) + goto done; if (fsync(fd) == -1) { err = got_error_from_errno("fsync");
--- gotd/repo_write.c +++ gotd/repo_write.c @@ -2166,6 +2166,8 @@ render_notification(struct imsg *imsg, struct gotd_ims iev, fd); break; } + if (err != NULL) + goto done; if (fsync(fd) == -1) { err = got_error_from_errno("fsync");