summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2018-05-25 10:36:57 +0900
committerErik Kline <ek@google.com>2018-05-25 11:26:13 +0900
commitbe9b6f807197ae63c4e347f6d0bf4427ecacc205 (patch)
tree087f122f70197c70c900f2692c86cb2bb80c1b4c
parentec0c6d659cc869b0b6f55362a18936afc7885249 (diff)
downloaddnsmasq-pie-qpr2-release.tar.gz
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
-rwxr-xr-xsrc/dnsmasq.c1
1 files changed, 1 insertions, 0 deletions
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 @@ void closeUnwantedFileDescriptors() {
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)",