commit 0d0c539eac836dab945d11ed77fdd70e27e2ba22 from: joshua stein date: Wed May 22 15:56:47 2019 UTC got_opentemp_named: include path in error message commit - a3da3b618b8689ee174e0f8d799fd51d22453919 commit + 0d0c539eac836dab945d11ed77fdd70e27e2ba22 blob - 212a9365a8970d664fb888047b028d3bb46a7391 blob + 8476310b72754058ce034bd77807a92b52b4e810 --- lib/opentemp.c +++ lib/opentemp.c @@ -71,7 +71,7 @@ got_opentemp_named(char **path, FILE **outfile, const 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; @@ -79,7 +79,7 @@ got_opentemp_named(char **path, FILE **outfile, const *outfile = fdopen(fd, "w+"); if (*outfile == NULL) { - err = got_error_from_errno("fdopen"); + err = got_error_from_errno2("fdopen", *path); free(*path); *path = NULL; }