The branch, master has been updated
       via  68515aa5a73 smbclient: fix handling errors from do_put in mput
      from  58f5ad63f3a python:ndr: improve type annotation and docs for 
pack/unpack

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


- Log -----------------------------------------------------------------
commit 68515aa5a73bed540ea543458e1feca8dc40fffd
Author: Ralph Boehme <[email protected]>
Date:   Wed Jul 30 09:53:40 2025 +0200

    smbclient: fix handling errors from do_put in mput
    
    Pair-Programmed-With: Anoop C S <[email protected]>
    Signed-off-by: Ralph Boehme <[email protected]>
    Signed-off-by: Anoop C S <[email protected]>
    
    Autobuild-User(master): Ralph Böhme <[email protected]>
    Autobuild-Date(master): Fri Aug  8 11:59:33 UTC 2025 on atb-devel-224

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

Summary of changes:
 source3/client/client.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/client/client.c b/source3/client/client.c
index e96efb9ea23..c8b157bb0c3 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2177,6 +2177,7 @@ static int cmd_mput(void)
                ret = file_find(ctx, &file_list, ".", p, true);
                if (ret) {
                        free_file_list(file_list);
+                       file_list = NULL;
                        continue;
                }
 
@@ -2267,12 +2268,19 @@ static int cmd_mput(void)
                                        break;
                                }
                        }
-                       do_put(rname, lname, false);
+                       ret = do_put(rname, lname, false);
+                       if (ret != 0) {
+                               break;
+                       }
                }
                free_file_list(file_list);
+               file_list = NULL;
                SAFE_FREE(quest);
                SAFE_FREE(lname);
                SAFE_FREE(rname);
+               if (ret != 0) {
+                       return ret;
+               }
        }
 
        return 0;


-- 
Samba Shared Repository

Reply via email to