commit a345a9df6d40e0b447c873496cc55d7bd88feb48 from: Johannes Thyssen Tishman date: Sun Apr 27 18:50:30 2025 UTC remove /tmp/got-importmsg on empty import commit message ok stsp@ commit - 43da8b281f78341ca4cb9784e84693fb599e296a commit + a345a9df6d40e0b447c873496cc55d7bd88feb48 blob - 1566a18d6ca7647bf2749dee035e95cd38cec034 blob + 7f05e93a2d2a8e26f43477b49ca6c54875bf2ddf --- got/got.c +++ got/got.c @@ -609,7 +609,9 @@ done: if (fd != -1 && close(fd) == -1 && err == NULL) err = got_error_from_errno2("close", *logmsg_path); free(initial_content); - if (err) { + + if (err && *logmsg_path) { + unlink(*logmsg_path); free(*logmsg_path); *logmsg_path = NULL; }