chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus: make bus_print_all_properties work for non machinectl cases
[elogind.git]
/
src
/
machine
/
machinectl.c
diff --git
a/src/machine/machinectl.c
b/src/machine/machinectl.c
index c48abcd0bb7aa51f41ffe5c57d1dec6b1021910b..aa2b0986eda0a1f98b9b0833410507019f5c7afb 100644
(file)
--- a/
src/machine/machinectl.c
+++ b/
src/machine/machinectl.c
@@
-19,13
+19,13
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <sys/socket.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <getopt.h>
#include <pwd.h>
#include <locale.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <getopt.h>
#include <pwd.h>
#include <locale.h>
-#include <socket.h>
#include <fcntl.h>
#include "sd-bus.h"
#include <fcntl.h>
#include "sd-bus.h"
@@
-284,7
+284,7
@@
static int show_properties(sd_bus *bus, const char *path, bool *new_line) {
*new_line = true;
*new_line = true;
- r = bus_print_all_properties(bus, path, arg_property, arg_all);
+ r = bus_print_all_properties(bus,
"org.freedesktop.machine1",
path, arg_property, arg_all);
if (r < 0)
log_error("Could not get properties: %s", strerror(-r));
if (r < 0)
log_error("Could not get properties: %s", strerror(-r));