projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e6995b
)
Ignore invalid hostname provided by DHCP server
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 12 May 2010 15:09:20 +0000
(17:09 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 12 May 2010 15:09:20 +0000
(17:09 +0200)
plugins/loopback.c
patch
|
blob
|
history
diff --git
a/plugins/loopback.c
b/plugins/loopback.c
index
9c5e4bf
..
94059e0
100644
(file)
--- a/
plugins/loopback.c
+++ b/
plugins/loopback.c
@@
-283,6
+283,9
@@
static int loopback_set_hostname(const char *hostname)
{
int err;
+ if (g_strcmp0(hostname, "<hostname>") == 0)
+ return 0;
+
if (sethostname(hostname, strlen(hostname)) < 0) {
err = -errno;
connman_error("Failed to set hostname to %s", hostname);