chiark / gitweb /
Revert "bus-proxyd: make policy checks optional"
[elogind.git] / src / hostname / hostnamed.c
index 0cffb5f683a742f0febcd2fdd2c6181f4e3f8dac..0123922c4a2f185583e42ae3f1b8939914e1f136 100644 (file)
@@ -138,7 +138,8 @@ static bool valid_chassis(const char *chassis) {
                         "server\0"
                         "tablet\0"
                         "handset\0"
-                        "watch\0",
+                        "watch\0"
+                        "embedded\0",
                         chassis);
 }
 
@@ -287,7 +288,7 @@ static int context_update_kernel_hostname(Context *c) {
         else
                 hn = "localhost";
 
-        if (sethostname(hn, strlen(hn)) < 0)
+        if (sethostname_idempotent(hn) < 0)
                 return -errno;
 
         return 0;