From 15a3cd4853f0f6216c2b0a0a99e3baf05f444be0 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 30 Sep 2021 19:49:37 +0000 Subject: Silence owner-info error cgit runs in a chroot. It is normal that it cannot look up user info in /etc/passwd. --- www/git.causal.agency/cgit/scan-tree.c | 2 -- 1 file changed, 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) -- cgit 1.4.1