From c6dd9ff9290427504faef120bd5c1ebb78990ca0 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 15 Mar 2022 15:17:31 +0900 Subject: [PATCH] scd: Fix DEVINFO with no --watch. * scd/app.c (app_send_devinfo): Fix for outputing once. * scd/command.c (hlp_devinfo): Fix comment. -- Signed-off-by: NIIBE Yutaka --- scd/app.c | 2 +- scd/command.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scd/app.c b/scd/app.c index 3961bdf6c..aeb773a67 100644 --- a/scd/app.c +++ b/scd/app.c @@ -447,7 +447,7 @@ app_send_devinfo (ctrl_t ctrl, int keep_looping) } send_status_direct (ctrl, "DEVINFO_END", ""); - if (no_device && !keep_looping) + if (keep_looping == 0) break; card_list_wait (); diff --git a/scd/command.c b/scd/command.c index 8bc8f7f4e..10f5a2fe1 100644 --- a/scd/command.c +++ b/scd/command.c @@ -2312,7 +2312,7 @@ static const char hlp_devinfo[] = "\n" "Return information about devices. If the option --watch is given,\n" "it keeps reporting status change until it detects no device is\n" - "available." + "available.\n" "The information is returned as a status line using the format:\n" "\n" " DEVICE \n"