diff --git a/src/net.c b/src/net.c index 8a59001..ff1f3c6 100644 --- a/src/net.c +++ b/src/net.c @@ -821,7 +821,7 @@ int hyper_setup_dns(struct hyper_pod *pod) } while (len < size) { - l = write(fd, buf, size); + l = write(fd, buf + len, size - len); if (l < 0) { perror("fail to write resolv.conf"); goto out;