BTW I should draw attention to the fact that: file->standard.resume_key accesses the wrong union member in some cases, but for smbclient the resume_key / file_index is stored at the same offset place anyway. I probably should have added a comment to explain this. Sam