chiark / gitweb /
Rename formats-util.h to format-util.h
[elogind.git] / src / login / logind-dbus.c
index 4b59d6e968ffe0f1d57d90048407ae66a15fa26b..a605666429ce2fb00880a32a2be03abe1c717df7 100644 (file)
@@ -34,7 +34,7 @@
 #include "escape.h"
 #include "fd-util.h"
 #include "fileio-label.h"
-#include "formats-util.h"
+#include "format-util.h"
 #include "fs-util.h"
 #include "logind.h"
 #include "mkdir.h"
@@ -2450,6 +2450,7 @@ static int method_set_wall_message(
         if (r < 0)
                 return r;
 
+#if 0 /// elogind only calls this for shutdown/reboot, which already needs authorization.
         r = bus_verify_polkit_async(message,
                                     CAP_SYS_ADMIN,
                                     "org.freedesktop.login1.set-wall-message",
@@ -2462,6 +2463,7 @@ static int method_set_wall_message(
                 return r;
         if (r == 0)
                 return 1; /* Will call us back */
+#endif // 0
 
         if (isempty(wall_message))
                 m->wall_message = mfree(m->wall_message);