chiark / gitweb /
tree-wide: there is no ENOTSUP on linux
[elogind.git] / src / machine / machinectl.c
index aaf9e9cf2c24476ecf49a533750a47e25d07a39f..688c5109072fb83c1ab9e9c592769ffc681610e5 100644 (file)
@@ -1155,7 +1155,7 @@ static int login_machine(int argc, char *argv[], void *userdata) {
         if (arg_transport != BUS_TRANSPORT_LOCAL &&
             arg_transport != BUS_TRANSPORT_MACHINE) {
                 log_error("Login only supported on local machines.");
-                return -ENOTSUP;
+                return -EOPNOTSUPP;
         }
 
         polkit_agent_open_if_enabled();