Lessen EACCES log spam
Test: as follows
- built, flashed, booted
- started tethering, observed dnsmasq log messages but no
EACCES spam
Bug: 32163131
Bug: 38364896
Bug: 80229031
Change-Id: I719c81c326c95186576c7186cc25f4eda24091fa
diff --git a/src/dnsmasq.c b/src/dnsmasq.c
index 3d7bdb5..cbe3d86 100755
--- a/src/dnsmasq.c
+++ b/src/dnsmasq.c
@@ -110,6 +110,7 @@
if (fstat(i, &stat_buf) != 0) {
if (errno == EBADF) continue;
+ if (errno == EACCES) continue; // Lessen the log spam.
my_syslog(LOG_ERR, "fstat(%d) error: %d/%s", i, errno, strerror(errno));
} else {
my_syslog(LOG_ERR, "Closing inherited file descriptor %d (%u:%u)",