search for: file_fsp

Displaying 2 results from an estimated 2 matches for "file_fsp".

Did you mean: file_ds
2003 Sep 05
1
Problem with Win95 + DFS clients (fwd)
Hi, I've found a problem with samba when printing from a client running win95 + DFS. The print fails with a segmentation fault. The problem is that Win95 does not return the proper file_fsp( smb_vwv0) when doing an IOCTL request.This causes the file_fsp call in reply_ioctl (smbd/reply.c) to fail cause a segmentation fault. I do not understand how samba work, but here is my working patch for this. I just copied the fid from the last open_And_X call and write it into inbuf if the...
2003 Dec 01
0
No subject
...nt reply_read_and_X(connection_struct *conn, char *inbuf,char *outbuf,int length,int bufsize) { /*added to support sendfile start */ int outsize; off_t sbytes; struct sf_hdtr smb_sf_hdtr; struct iovec smb_hdr[1]; int smb_com2; /*added to support sendfile end */ files_struct *fsp = file_fsp(inbuf,smb_vwv2); SMB_OFF_T startpos = IVAL(inbuf,smb_vwv3); size_t smb_maxcnt = SVAL(inbuf,smb_vwv5); size_t smb_mincnt = SVAL(inbuf,smb_vwv6); ssize_t nread = -1; char *data; START_PROFILE(SMBreadX); /* If it's an IPC, pass off the pipe handler. */ if (IS_IPC(conn)) { END_...