projects
/
systembsd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop conf.
[systembsd.git]
/
src
/
interfaces
/
hostnamed
/
hostnamed.c
diff --git
a/src/interfaces/hostnamed/hostnamed.c
b/src/interfaces/hostnamed/hostnamed.c
index d8111d8367a59155e65399f43d7f07a908e5f1cc..19a196cc62929b2cdd346176a9b94ed7c267580f 100644
(file)
--- 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 <glib/gprintf.h>
#include <glib-unix.h>
-/* #include <gtk/gtk.h> */
+#include <polkit/polkit.h>
#include "hostnamed-gen.h"
#include "hostnamed.h"
#include "hostnamed-gen.h"
#include "hostnamed.h"
@@
-137,7
+137,8
@@
on_handle_set_hostname(Hostname1 *hn1_passed_interf,
ret = TRUE;
}
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);
if(proposed_hostname)
g_free(proposed_hostname);