Commit Diff


commit - 60db6857a08abeed5f82dd212d63734a5685ab94
commit + 1487ee74528d56ab29c4bda3f1812fe857abeb18
blob - 249ec85c01a0809c1c6575a3a119d073b503a34d
blob + 12a7eb1e6d2aa691a1f8da94499d3605098ff532
--- gotd/gotd.c
+++ gotd/gotd.c
@@ -2250,7 +2250,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");
@@ -2305,7 +2305,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");