mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] common: fastboot: send FAIL if variable does not exist
@ 2025-06-11 17:56 Andrei Lalaev
  2025-06-12  8:08 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Andrei Lalaev @ 2025-06-11 17:56 UTC (permalink / raw)
  To: s.hauer; +Cc: andrey.lalaev, barebox

According to doc [1], new implementations should send FAIL if the
variable specified in the getvar command does not exist.

[1]: https://android.googlesource.com/platform/system/core/+show/refs/heads/main/fastboot/README.md#121

Signed-off-by: Andrei Lalaev <andrey.lalaev@gmail.com>
---
 common/fastboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/fastboot.c b/common/fastboot.c
index 56bc4e82c4..3df3c227a3 100644
--- a/common/fastboot.c
+++ b/common/fastboot.c
@@ -372,7 +372,7 @@ static void cb_getvar(struct fastboot *fb, const char *cmd)
 		goto out;
 
 skip_partitions:
-	fastboot_tx_print(fb, FASTBOOT_MSG_OKAY, "");
+	fastboot_tx_print(fb, FASTBOOT_MSG_FAIL, "");
 out:
 	fastboot_free_variables(&partition_list);
 }
-- 
2.49.0




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-06-12 19:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-11 17:56 [PATCH] common: fastboot: send FAIL if variable does not exist Andrei Lalaev
2025-06-12  8:08 ` Sascha Hauer
2025-06-12 14:19   ` Andrei Lalaev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox