diff --git a/cpp/shared/s2p_version.cpp b/cpp/shared/s2p_version.cpp index 6dd6c489..2e0ce776 100644 --- a/cpp/shared/s2p_version.cpp +++ b/cpp/shared/s2p_version.cpp @@ -10,5 +10,5 @@ const int s2p_major_version = 1; const int s2p_minor_version = 1; -const int s2p_revision = 0; +const int s2p_revision = 2; const std::string s2p_suffix = ""; diff --git a/cpp/shared_command/command_executor.cpp b/cpp/shared_command/command_executor.cpp index 91f2bf5a..f694707e 100644 --- a/cpp/shared_command/command_executor.cpp +++ b/cpp/shared_command/command_executor.cpp @@ -2,7 +2,7 @@ // // SCSI target emulator and SCSI tools for the Raspberry Pi // -// Copyright (C) 2021-2023 Uwe Seimet +// Copyright (C) 2021-2024 Uwe Seimet // //--------------------------------------------------------------------------- @@ -125,7 +125,8 @@ bool CommandExecutor::ProcessCmd(const CommandContext &context) return false; } - return context.ReturnSuccessStatus(); + // ATTACH and DETACH are special cases because they return the current device list + return command.operation() == ATTACH || command.operation() == DETACH ? true : context.ReturnSuccessStatus(); } bool CommandExecutor::Start(PrimaryDevice &device, bool dryRun) const