Merge pull request #3 from gao-feng/fix

fix incorrectly writting to resolv.conf
This commit is contained in:
Gao feng
2015-09-01 17:12:40 +08:00
+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;