projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20890d1
)
Ignore DNS servers without an interface for now
author
Marcel Holtmann
<marcel@holtmann.org>
Sat, 19 Dec 2009 05:21:08 +0000
(21:21 -0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sat, 19 Dec 2009 05:21:08 +0000
(21:21 -0800)
src/resolver.c
patch
|
blob
|
history
diff --git
a/src/resolver.c
b/src/resolver.c
index
dec1357
..
5fc01a6
100644
(file)
--- a/
src/resolver.c
+++ b/
src/resolver.c
@@
-328,6
+328,9
@@
static int resolvfile_append(const char *interface, const char *domain,
DBG("interface %s server %s", interface, server);
+ if (interface == NULL)
+ return -ENOENT;
+
fd = open("/etc/resolv.conf", O_RDWR | O_CREAT,
S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (fd < 0)