summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-30 19:49:37 +0000
committerJune McEnroe <june@causal.agency>2021-09-30 19:49:37 +0000
commitdb96234ccb8c33dfdf127eb7e254a84481f98aa1 (patch)
tree3b860b10545eef2238439ced4885e9649f2344f5
parentpledge(2) mtags (diff)
downloadsrc-db96234ccb8c33dfdf127eb7e254a84481f98aa1.tar.gz
src-db96234ccb8c33dfdf127eb7e254a84481f98aa1.zip
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--www/git.causal.agency/cgit/scan-tree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/www/git.causal.agency/cgit/scan-tree.c b/www/git.causal.agency/cgit/scan-tree.c
index 6a2f65a8..1e3b43de 100644
--- a/www/git.causal.agency/cgit/scan-tree.c
+++ b/www/git.causal.agency/cgit/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)