fix incorrectly writting to resolv.conf

Signed-off-by: Gao feng <omarapazanadi@gmail.com>
This commit is contained in:
Gao feng
2015-08-28 20:46:33 +08:00
parent e7e6b98958
commit c7b46b71a0
+1 -1
View File
@@ -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;