about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-30 19:49:37 +0000
committerRory& <root@rory.gay>2026-02-06 14:09:56 +0100
commitceae02c5dde3c46ea87ad9c3dda56c350b706051 (patch)
treed56a75dca5b9eaa9e64eabfdef866bd823552516
parentRemove default favicon (diff)
downloadcgit-magenta-ceae02c5dde3c46ea87ad9c3dda56c350b706051.tar.xz
Silence owner-info error
cgit runs in a chroot. It is normal that it cannot look up user
info in /etc/passwd.
-rw-r--r--scan-tree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/scan-tree.c b/scan-tree.c

index 84da86e..aa93665 100644 --- a/scan-tree.c +++ b/scan-tree.c
@@ -137,8 +137,6 @@ static void add_repo(const char *base, struct strbuf *path, repo_config_fn fn) repo->path = xstrdup(path->buf); while (!repo->owner) { if ((pwd = getpwuid(st.st_uid)) == NULL) { - fprintf(stderr, "Error reading owner-info for %s: %s (%d)\n", - path->buf, strerror(errno), errno); break; } if (pwd->pw_gecos)