commit f0961700eb8c00d5ea2cb5fb79f5c65a642e9c9a from: Johannes Thyssen Tishman via: Thomas Adam date: Thu May 15 16:08:55 2025 UTC remove /tmp/got-importmsg on empty import commit message ok stsp@ commit - 44baa04e54559c1ca68cab2120d2b08356bac686 commit + f0961700eb8c00d5ea2cb5fb79f5c65a642e9c9a blob - bf6821bb5fd7969752cb6da4a3207df3d2dda1b1 blob + 61a8dc9128abfd0e83897ca9b7f0b404ccc529aa --- got/got.c +++ got/got.c @@ -607,7 +607,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; }