aboutsummaryrefslogtreecommitdiffstats
path: root/src/interfaces/hostnamed/hostnamed.c
diff options
context:
space:
mode:
authorkremlin <ian@kremlin.cc>2014-08-16 02:11:08 +0800
committerkremlin <ian@kremlin.cc>2014-08-16 02:11:08 +0800
commiteb78abe998a0ee15d66350455629c0aac1d3af71 (patch)
treeb1f59ae19f1fb01affab0ebbc71f790fc991abff /src/interfaces/hostnamed/hostnamed.c
parent4a537080c283b57479600b804a2bc1a98c51a64d (diff)
downloadsystembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar.gz
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar.bz2
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar.lz
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar.xz
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar.zst
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.zip
include polkit.h in all interfaces, edit makefile accordingly
Diffstat (limited to 'src/interfaces/hostnamed/hostnamed.c')
-rw-r--r--src/interfaces/hostnamed/hostnamed.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c
index d8111d8..19a196c 100644
--- a/src/interfaces/hostnamed/hostnamed.c
+++ b/src/interfaces/hostnamed/hostnamed.c
@@ -29,7 +29,7 @@
#include <glib/gprintf.h>
#include <glib-unix.h>
-/* #include <gtk/gtk.h> */
+#include <polkit/polkit.h>
#include "hostnamed-gen.h"
#include "hostnamed.h"
@@ -137,7 +137,8 @@ on_handle_set_hostname(Hostname1 *hn1_passed_interf,
ret = TRUE;
}
- hostname1_complete_set_hostname(hn1_passed_interf, invoc);
+ if(ret)
+ hostname1_complete_set_hostname(hn1_passed_interf, invoc);
if(proposed_hostname)
g_free(proposed_hostname);