]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sulogin: print features on --version
authorKarel Zak <kzak@redhat.com>
Wed, 20 Jul 2022 14:57:15 +0000 (16:57 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Jul 2022 14:58:17 +0000 (16:58 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/sulogin.c

index 4c2daa6a4ade09b2f941efaeee4dffa77d142c1d..e343f0530e3768e2161476d5ac5c58e853f928cf 100644 (file)
@@ -944,7 +944,15 @@ int main(int argc, char **argv)
                        opt_e = 1;
                        break;
                case 'V':
-                       print_version(EXIT_SUCCESS);
+               {
+                       static const char *features[] = {
+#ifdef USE_SULOGIN_EMERGENCY_MOUNT
+                               "emergency-mount",
+#endif
+                               NULL
+                       };
+                       print_version_with_features(EXIT_SUCCESS, features);
+               }
                case 'h':
                        usage();
                default: