commit 48c84e600154b1e55f4105c49e38acb29abc9d80 from: Stefan Sperling date: Mon Jul 22 08:40:08 2019 UTC remove call to got_path_normalize() commit - 6876e2035e5226e05e591587b31ab2a9b477034b commit + 48c84e600154b1e55f4105c49e38acb29abc9d80 blob - 52d956f605b4ba9a40603a03256518c933e66992 blob + e520aaf12753405c6543460f92398e1c0e75f3c7 --- regress/repository/repository_test.c +++ regress/repository/repository_test.c @@ -421,17 +421,10 @@ static const struct got_error * apply_unveil(const char *repo_path) { const struct got_error *error; - char *normpath = NULL; if (repo_path) { - normpath = got_path_normalize(repo_path); - if (normpath == NULL) - return got_error_from_errno("got_path_normalize"); - if (unveil(normpath, "r") != 0) { - free(normpath); - return got_error_from_errno2("unveil", normpath); - } - free(normpath); + if (unveil(repo_path, "r") != 0) + return got_error_from_errno2("unveil", repo_path); } if (unveil("/tmp", "rwc") != 0)