Commit 41a37a441444194d85c82d2046e402b55b159286

Omar Polo 2022-04-23T07:49:42

fix wrong path in error message

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/patch.c b/lib/patch.c
index 9b49b4b..9841808 100644
--- a/lib/patch.c
+++ b/lib/patch.c
@@ -612,7 +612,7 @@ apply_patch(struct got_worktree *worktree, struct got_repository *repo,
 	}
 
 	if (fchmod(fileno(tmp), mode) == -1) {
-		err = got_error_from_errno2("chmod", newpath);
+		err = got_error_from_errno2("chmod", tmppath);
 		goto done;
 	}