commit - a3da3b618b8689ee174e0f8d799fd51d22453919
commit + 0d0c539eac836dab945d11ed77fdd70e27e2ba22
blob - 212a9365a8970d664fb888047b028d3bb46a7391
blob + 8476310b72754058ce034bd77807a92b52b4e810
--- lib/opentemp.c
+++ lib/opentemp.c
fd = mkstemp(*path);
if (fd == -1) {
- err = got_error_from_errno("mkstemp");
+ err = got_error_from_errno2("mkstemp", *path);
free(*path);
*path = NULL;
return err;
*outfile = fdopen(fd, "w+");
if (*outfile == NULL) {
- err = got_error_from_errno("fdopen");
+ err = got_error_from_errno2("fdopen", *path);
free(*path);
*path = NULL;
}