chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: reverse order of args when verbosely creating symlinks
[elogind.git]
/
src
/
systemctl
/
systemctl.c
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index 56f5084ad99068e9f35c5b019f2d402eb09a0b0e..727be58d0a75189ff2aeeef0f19ee988350313cf 100644
(file)
--- a/
src/systemctl/systemctl.c
+++ b/
src/systemctl/systemctl.c
@@
-1928,9
+1928,9
@@
static void dump_unit_file_changes(const UnitFileChange *changes, unsigned n_cha
for (i = 0; i < n_changes; i++) {
if (changes[i].type == UNIT_FILE_SYMLINK)
for (i = 0; i < n_changes; i++) {
if (changes[i].type == UNIT_FILE_SYMLINK)
- log_info("
ln -s '%s' '%s'", changes[i].source, changes[i].path
);
+ log_info("
Created symlink from %s to %s.", changes[i].path, changes[i].source
);
else
else
- log_info("
rm '%s'
", changes[i].path);
+ log_info("
Removed symlink %s.
", changes[i].path);
}
}
}
}
@@
-1945,9
+1945,9
@@
static int deserialize_and_dump_unit_file_changes(sd_bus_message *m) {
while ((r = sd_bus_message_read(m, "(sss)", &type, &path, &source)) > 0) {
if (!arg_quiet) {
if (streq(type, "symlink"))
while ((r = sd_bus_message_read(m, "(sss)", &type, &path, &source)) > 0) {
if (!arg_quiet) {
if (streq(type, "symlink"))
- log_info("
ln -s '%s' '%s'", source, path
);
+ log_info("
Created symlink from %s to %s.", path, source
);
else
else
- log_info("
rm '%s'
", path);
+ log_info("
Removed symlink %s.
", path);
}
}
if (r < 0)
}
}
if (r < 0)