diff options
author | Graeme Lawes <graemelawes@gmail.com> | 2016-12-25 06:14:41 -0500 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-12-25 12:14:41 +0100 |
commit | 3a0a40d1667e53b623e891527871e9f3ee6cb7b4 (patch) | |
tree | 35c20d251b86193934c8e09d24f8c5ce2787158b | |
parent | 2dcf2a1724925b600c032c8e5ae3bb1011e5661d (diff) |
machinectl: handle EOPNOTSUPP from print_addresses (#4979)
Print addresses returns EOPNOTSUPP, not ENOSYS, when trying to print
addresses for non-container machines.
-rw-r--r-- | src/machine/machinectl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 36c2607ba9..f85ef5b6ec 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -331,7 +331,7 @@ static int list_machines(int argc, char *argv[], void *userdata) { (int) max_version_id, strdash_if_empty(machines[j].version_id)); r = print_addresses(bus, machines[j].name, 0, "", prefix, arg_addrs); - if (r == -ENOSYS) + if (r == -EOPNOTSUPP) printf("-\n"); } |