The branch, master has been updated
       via  ab3d2379415 examples/winexe: fix fetching return code of the remote 
command
      from  332338173ec s3: smbd: Convert reply_checkpath() to use 
filename_convert_dirfsp().

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit ab3d2379415fc1b90b7ad1b6969ddbb88bbfc86b
Author: Yury Lunev <yury.lu...@gmail.com>
Date:   Wed Jul 27 21:22:49 2022 +0300

    examples/winexe: fix fetching return code of the remote command
    
    ctrl_inbuf field is used to parse remote-side information. A typo was
    there that tried to parse return code as "version 0x%x" whereas the
    correct way to do it (tested on Windows 10) is to scan for "return_code
    %x".
    
    Signed-off-by: Yury Lunev <yury.lu...@gmail.com>
    Reviewed-by: Volker Lendecke <v...@samba.org>
    Reviewed-by: Jeremy Allison <j...@samba.org>
    
    Autobuild-User(master): Jeremy Allison <j...@samba.org>
    Autobuild-Date(master): Thu Jul 28 18:01:16 UTC 2022 on sn-devel-184

-----------------------------------------------------------------------

Summary of changes:
 examples/winexe/winexe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/examples/winexe/winexe.c b/examples/winexe/winexe.c
index 8a17107617c..29e1fe2055b 100644
--- a/examples/winexe/winexe.c
+++ b/examples/winexe/winexe.c
@@ -1695,7 +1695,7 @@ static void winexe_ctrl_got_read(struct tevent_req 
*subreq)
                return;
        }
 
-       ret = sscanf(state->ctrl_inbuf, "version 0x%x\n", &return_code);
+       ret = sscanf(state->ctrl_inbuf, "return_code %x\n", &return_code);
        if (ret == 1) {
                state->return_code = return_code;
                return;


-- 
Samba Shared Repository

Reply via email to