From 2c7d1ce088ba9b588652f58616eb2a8d7748ca88 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Sat, 16 Oct 2021 06:15:05 +0200 Subject: passt: Static builds: don't redefine __vsyslog(), skip getpwnam() and initgroups() Signed-off-by: Stefano Brivio --- conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index b91d09b..4287630 100644 --- a/conf.c +++ b/conf.c @@ -293,7 +293,8 @@ static void get_dns(struct ctx *c) if ((fd = open("/etc/resolv.conf", O_RDONLY)) < 0) goto out; - while (!(*buf = 0) && line_read(buf, BUFSIZ, fd)) { + *buf = 0; + while (line_read(buf, BUFSIZ, fd)) { if (!dns_set && strstr(buf, "nameserver ") == buf) { p = strrchr(buf, ' '); if (!p) -- cgit v1.2.3