Fix to return buffer output properly.
[jra/samba/.git] / testsuite / lib / smbclient.exp
index e137ebd6c850e6d56069ec78975fa3e07afe9af2..6528d784fa57217d9c3ffc5537cb0f957df571c5 100644 (file)
@@ -42,11 +42,11 @@ proc do_smbclient { args } {
     send $action
 
     expect {
-       $smb_prompt     { set output $expect_out(0,string) }
+       $smb_prompt     {}
        timeout         { perror "timed out $description"; return -1}
        eof             { perror "end of file description"; return -1 }
     }
 
-    verbose $output
-    return $output
+    verbose $expect_out(buffer)
+    return $expect_out(buffer)
 }