aboutgitcodebugslistschat
path: root/conf.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-16 06:15:05 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-16 16:53:40 +0200
commit2c7d1ce088ba9b588652f58616eb2a8d7748ca88 (patch)
treeebc970cb55445f6e1e8b0ee50a928d0bea787f7f /conf.c
parent1fd0c9b0e1f27098f9bf86e86285335e640317a5 (diff)
downloadpasst-2c7d1ce088ba9b588652f58616eb2a8d7748ca88.tar
passt-2c7d1ce088ba9b588652f58616eb2a8d7748ca88.tar.gz
passt-2c7d1ce088ba9b588652f58616eb2a8d7748ca88.tar.bz2
passt-2c7d1ce088ba9b588652f58616eb2a8d7748ca88.tar.lz
passt-2c7d1ce088ba9b588652f58616eb2a8d7748ca88.tar.xz
passt-2c7d1ce088ba9b588652f58616eb2a8d7748ca88.tar.zst
passt-2c7d1ce088ba9b588652f58616eb2a8d7748ca88.zip
passt: Static builds: don't redefine __vsyslog(), skip getpwnam() and initgroups()
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c3
1 files changed, 2 insertions, 1 deletions
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)