Commit 82223ffcc5f64af285d0eac132024ef478ca6bd2

Stefan Sperling 2019-12-13T11:09:40

fix wrong function name in errno error message

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/worktree.c b/lib/worktree.c
index f7fd550..cb77d01 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -3682,7 +3682,7 @@ collect_commitables(void *arg, unsigned char status,
 		if (dirfd != -1) {
 			if (fstatat(dirfd, de_name, &sb,
 			    AT_SYMLINK_NOFOLLOW) == -1) {
-				err = got_error_from_errno2("lstat",
+				err = got_error_from_errno2("fstatat",
 				    ct->ondisk_path);
 				goto done;
 			}