]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/systemctl/systemctl-start-special.c
systemctl: shutdown don't fallback on auth fail
[thirdparty/systemd.git] / src / systemctl / systemctl-start-special.c
index 6ece700a9bf717bd36ea75c6b0c8c750f5726f3a..08eefc473e9f39cbe6ac632bc8399fdd19b26a6e 100644 (file)
@@ -213,8 +213,8 @@ int start_special(int argc, char *argv[], void *userdata) {
                         r = logind_reboot(a);
                         if (r >= 0)
                                 return r;
-                        if (IN_SET(r, -EOPNOTSUPP, -EINPROGRESS))
-                                /* Requested operation is not supported or already in progress */
+                        if (IN_SET(r, -EACCES, -EOPNOTSUPP, -EINPROGRESS))
+                                /* Requested operation requires auth, is not supported or already in progress */
                                 return r;
 
                         /* On all other errors, try low-level operation. In order to minimize the difference