Commit 62550b1381d59589726532682b983d836491cc82

Stefan Sperling 2019-07-23T14:35:00

fix path in got_repo_open() error message

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/repository.c b/lib/repository.c
index 6ea6d7b..20596a1 100644
--- a/lib/repository.c
+++ b/lib/repository.c
@@ -372,7 +372,7 @@ got_repo_open(struct got_repository **repop, const char *path)
 
 	path = realpath(abspath, NULL);
 	if (path == NULL) {
-		err = got_error_from_errno2("realpath", path);
+		err = got_error_from_errno2("realpath", abspath);
 		goto done;
 	}