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