]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup: mention correct action in log message
authorDaniel Winzen <daniel@danwin1210.de>
Mon, 27 May 2024 16:05:23 +0000 (18:05 +0200)
committerGitHub <noreply@github.com>
Mon, 27 May 2024 16:05:23 +0000 (17:05 +0100)
src/cryptsetup/cryptsetup.c

index 5b56d358794d8c49b4a6635414a071100b9e4a70..8ad0528dec1a443f4b238e1294bbef607b3578b1 100644 (file)
@@ -2485,7 +2485,7 @@ static int run(int argc, char *argv[]) {
                 const char *volume = ASSERT_PTR(argv[optind + 1]);
 
                 if (argc - optind >= 3)
-                        return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "attach does not accept more than one argument.");
+                        return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "detach does not accept more than one argument.");
 
                 if (!filename_is_valid(volume))
                         return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Volume name '%s' is not valid.", volume);