Commit Diff
--- 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; }