commit 2840f7155236a942e37138a120142e77794eabf4 from: Stefan Sperling date: Thu Jul 11 10:57:15 2019 UTC new realpath(3) doesn't like receiving an empty path as input commit - 06067b4819c9a56fdb29d06de0967cf3a1bc5912 commit + 2840f7155236a942e37138a120142e77794eabf4 blob - 42b69efba8918ce354a3462a25faa66ef51980dc blob + c8076c6355d6683f3fadaa770be0345c15825f48 --- lib/repository.c +++ lib/repository.c @@ -472,7 +472,7 @@ got_repo_map_path(char **in_repo_path, struct got_repo repo_abspath = got_repo_get_path(repo); - if (!check_disk) { + if (!check_disk || canonpath[0] == '\0') { path = strdup(canonpath); if (path == NULL) { err = got_error_from_errno("strdup");