commit 41a37a441444194d85c82d2046e402b55b159286 from: Omar Polo date: Sat Apr 23 07:49:42 2022 UTC fix wrong path in error message commit - d7b5a0e827bb38e5c8502f0ba8d7838fedaba19b commit + 41a37a441444194d85c82d2046e402b55b159286 blob - 9b49b4b1349c2d2994dfa6e667c9265975aea642 blob + 98418089797d2253ab063b1a54e7cd5043491334 --- lib/patch.c +++ lib/patch.c @@ -612,7 +612,7 @@ apply_patch(struct got_worktree *worktree, struct got_ } if (fchmod(fileno(tmp), mode) == -1) { - err = got_error_from_errno2("chmod", newpath); + err = got_error_from_errno2("chmod", tmppath); goto done; }