chiark / gitweb /
systemctl: reverse order of args when verbosely creating symlinks
authorDave Reisner <dreisner@archlinux.org>
Tue, 17 Jun 2014 03:29:27 +0000 (23:29 -0400)
committerDave Reisner <dreisner@archlinux.org>
Tue, 17 Jun 2014 03:30:30 +0000 (23:30 -0400)
This was backwards. The symlink itself points to the source unit, not
the other way around.

src/systemctl/systemctl.c

index fc6329cdd0921d0da6b615914f116105e360a6f7..727be58d0a75189ff2aeeef0f19ee988350313cf 100644 (file)
@@ -1928,7 +1928,7 @@ 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)
-                        log_info("Created symlink from %s to %s.", changes[i].source, changes[i].path);
+                        log_info("Created symlink from %s to %s.", changes[i].path, changes[i].source);
                 else
                         log_info("Removed symlink %s.", changes[i].path);
         }
@@ -1945,7 +1945,7 @@ 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"))
-                                log_info("Created symlink from %s to %s.", source, path);
+                                log_info("Created symlink from %s to %s.", path, source);
                         else
                                 log_info("Removed symlink %s.", path);
                 }