commit e34d12854902b472e38f40dbc4e1e44acf093240 from: Stefan Sperling date: Sun Jan 08 14:03:46 2023 UTC do not treat nonexistent repositories as a fatal error in gotd commit - 49a1ae4b7fbd435b06a58d71186f4675d399e2c7 commit + e34d12854902b472e38f40dbc4e1e44acf093240 blob - b2796e9bd2276a3ab70a1eda8659465864c5f881 blob + 869bad5bf5837b83c807d8d0fe3333fbcaef2804 --- gotd/gotd.c +++ gotd/gotd.c @@ -2251,7 +2251,7 @@ start_repo_child(struct gotd_client *client, enum gotd log_debug("starting %s for repository %s", proc->type == PROC_REPO_READ ? "reader" : "writer", repo->name); if (realpath(repo->path, proc->repo_path) == NULL) - fatal("%s", repo->path); + return got_error_from_errno2("realpath", repo->path); if (socketpair(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, PF_UNSPEC, proc->pipe) == -1) fatal("socketpair"); @@ -2306,7 +2306,7 @@ start_auth_child(struct gotd_client *client, int requi log_debug("starting auth for uid %d repository %s", client->euid, repo->name); if (realpath(repo->path, proc->repo_path) == NULL) - fatal("%s", repo->path); + return got_error_from_errno2("realpath", repo->path); if (socketpair(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, PF_UNSPEC, proc->pipe) == -1) fatal("socketpair");