commit 8260acc858602e0ca6da2e1d24caf55831ee2360 from: Omar Polo via: Thomas Adam date: Sun May 01 11:50:34 2022 UTC fix wrong path in error message commit - bd1cad3c9446b4006bd159fed50020f16bd0919f commit + 8260acc858602e0ca6da2e1d24caf55831ee2360 blob - a78eeaa56dc3c8cdfaad854cf5af090572edd9ee blob + 1bf4c94e8547d98c0baa7a383e7390d4c82e22d8 --- lib/patch.c +++ lib/patch.c @@ -632,7 +632,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; }