mirror of
https://passt.top/passt
synced 2025-06-10 09:35:34 +02:00
passt: Static builds: don't redefine __vsyslog(), skip getpwnam() and initgroups()
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
1fd0c9b0e1
commit
2c7d1ce088
5 changed files with 21 additions and 12 deletions
3
conf.c
3
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue