Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 609
b: refs/heads/master
c: 6857547
h: refs/heads/master
i:
  607: 0860650
v: v3
  • Loading branch information
Steve French authored and Linus Torvalds committed Apr 30, 2005
1 parent ee24011 commit b88b80f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9747dd6fa98f2983f4dd09cd6dad1fa3d2a4c5f2
refs/heads/master: 68575476718ed1c6d6ddafeec8310b109e7a7a7f
4 changes: 3 additions & 1 deletion trunk/fs/cifs/CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Fix error mapping of the TOO_MANY_LINKS (hardlinks) case.
Do not oops if root user kills cifs oplock kernel thread or
kills the cifsd thread (NB: killing the cifs kernel threads is not
recommended, unmount and rmmod cifs will kill them when they are
no longer needed).
no longer needed). Fix readdir to ASCII servers (ie older servers
which do not support Unicode) and also require asterik.


Version 1.33
------------
Expand Down
6 changes: 4 additions & 2 deletions trunk/fs/cifs/cifssmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2451,12 +2451,14 @@ CIFSFindFirst(const int xid, struct cifsTconInfo *tcon,
name_len += 2;
} else { /* BB add check for overrun of SMB buf BB */
name_len = strnlen(searchName, PATH_MAX);
name_len++; /* trailing null */
/* BB fix here and in unicode clause above ie
if(name_len > buffersize-header)
free buffer exit; BB */
strncpy(pSMB->FileName, searchName, name_len);
pSMB->FileName[name_len] = 0; /* just in case */
pSMB->FileName[name_len] = '\\';
pSMB->FileName[name_len+1] = '*';
pSMB->FileName[name_len+2] = 0;
name_len += 3;
}

params = 12 + name_len /* includes null */ ;
Expand Down

0 comments on commit b88b80f

Please sign in to comment.