diff options
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 5f030d5372..af980943ca 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -767,7 +767,7 @@ int reply_search(char *inbuf,char *outbuf) memcpy(mask,status+1,11); mask[11] = 0; dirtype = CVAL(status,0) & 0x1F; - Connections[cnum].dirptr = dptr_fetch(status+12,&dptr_num); + Connections[cnum].dirptr = dptr_fetch(SNUM(cnum), status+12,&dptr_num); if (!Connections[cnum].dirptr) goto SearchEmpty; string_set(&Connections[cnum].dirpath,dptr_path(dptr_num)); @@ -832,7 +832,7 @@ int reply_search(char *inbuf,char *outbuf) { memcpy(p,status,21); make_dir_struct(p,"???????????",volume_label(SNUM(cnum)),0,aVOLID,0); - dptr_fill(p+12,dptr_num); + dptr_fill(SNUM(cnum), p+12,dptr_num); if (dptr_zero(p+12) && (status_len==0)) numentries = 1; else @@ -854,7 +854,7 @@ int reply_search(char *inbuf,char *outbuf) { memcpy(p,status,21); make_dir_struct(p,mask,fname,size,mode,date); - dptr_fill(p+12,dptr_num); + dptr_fill(SNUM(cnum), p+12,dptr_num); numentries++; } p += DIR_STRUCT_SIZE; @@ -937,7 +937,7 @@ int reply_fclose(char *inbuf,char *outbuf) memcpy(status,smb_buf(inbuf) + 1 + strlen(path) + 4,21); - if(dptr_fetch(status+12,&dptr_num)) { + if(dptr_fetch(SNUM(cnum), status+12,&dptr_num)) { /* Close the dptr - we know it's gone */ dptr_close(dptr_num); } @@ -1326,7 +1326,7 @@ int reply_unlink(char *inbuf,char *outbuf) char *dname; if (check_name(directory,cnum)) - dirptr = OpenDir(directory, True); + dirptr = OpenDir(SNUM(cnum), directory, True); /* XXXX the CIFS spec says that if bit0 of the flags2 field is set then the pattern matches against the long name, otherwise the short name @@ -2736,7 +2736,7 @@ int reply_mv(char *inbuf,char *outbuf) pstring destname; if (check_name(directory,cnum)) - dirptr = OpenDir(directory, True); + dirptr = OpenDir(SNUM(cnum), directory, True); if (dirptr) { @@ -2927,7 +2927,7 @@ int reply_copy(char *inbuf,char *outbuf) pstring destname; if (check_name(directory,cnum)) - dirptr = OpenDir(directory, True); + dirptr = OpenDir(SNUM(cnum), directory, True); if (dirptr) { |