diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/CHANGES | 4 | ||||
-rw-r--r-- | fs/cifs/TODO | 12 | ||||
-rw-r--r-- | fs/cifs/cifssmb.c | 6 |
3 files changed, 17 insertions, 5 deletions
diff --git a/fs/cifs/CHANGES b/fs/cifs/CHANGES index 4d2404305ab6..95483baab706 100644 --- a/fs/cifs/CHANGES +++ b/fs/cifs/CHANGES | |||
@@ -4,7 +4,9 @@ Fix error mapping of the TOO_MANY_LINKS (hardlinks) case. | |||
4 | Do not oops if root user kills cifs oplock kernel thread or | 4 | Do not oops if root user kills cifs oplock kernel thread or |
5 | kills the cifsd thread (NB: killing the cifs kernel threads is not | 5 | kills the cifsd thread (NB: killing the cifs kernel threads is not |
6 | recommended, unmount and rmmod cifs will kill them when they are | 6 | recommended, unmount and rmmod cifs will kill them when they are |
7 | no longer needed). | 7 | no longer needed). Fix readdir to ASCII servers (ie older servers |
8 | which do not support Unicode) and also require asterik. | ||
9 | |||
8 | 10 | ||
9 | Version 1.33 | 11 | Version 1.33 |
10 | ------------ | 12 | ------------ |
diff --git a/fs/cifs/TODO b/fs/cifs/TODO index 1e8490ed6948..8cc881694e29 100644 --- a/fs/cifs/TODO +++ b/fs/cifs/TODO | |||
@@ -1,4 +1,4 @@ | |||
1 | version 1.32 April 3, 2005 | 1 | version 1.34 April 29, 2005 |
2 | 2 | ||
3 | A Partial List of Missing Features | 3 | A Partial List of Missing Features |
4 | ================================== | 4 | ================================== |
@@ -70,7 +70,15 @@ r) Implement O_DIRECT flag on open (already supported on mount) | |||
70 | s) Allow remapping of last remaining character (\) to +0xF000 which | 70 | s) Allow remapping of last remaining character (\) to +0xF000 which |
71 | (this character is valid for POSIX but not for Windows) | 71 | (this character is valid for POSIX but not for Windows) |
72 | 72 | ||
73 | KNOWN BUGS (updated April 3, 2005) | 73 | t) Create UID mapping facility so server UIDs can be mapped on a per |
74 | mount or a per server basis to client UIDs or nobody if no mapping | ||
75 | exists. This is helpful when Unix extensions are negotiated to | ||
76 | allow better permission checking when UIDs differ on the server | ||
77 | and client. Add new protocol request to the CIFS protocol | ||
78 | standard for asking the server for the corresponding name of a | ||
79 | particular uid. | ||
80 | |||
81 | KNOWN BUGS (updated April 29, 2005) | ||
74 | ==================================== | 82 | ==================================== |
75 | See http://bugzilla.samba.org - search on product "CifsVFS" for | 83 | See http://bugzilla.samba.org - search on product "CifsVFS" for |
76 | current bug list. | 84 | current bug list. |
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index b004fef0a42b..741ff0c69f37 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -2451,12 +2451,14 @@ findFirstRetry: | |||
2451 | name_len += 2; | 2451 | name_len += 2; |
2452 | } else { /* BB add check for overrun of SMB buf BB */ | 2452 | } else { /* BB add check for overrun of SMB buf BB */ |
2453 | name_len = strnlen(searchName, PATH_MAX); | 2453 | name_len = strnlen(searchName, PATH_MAX); |
2454 | name_len++; /* trailing null */ | ||
2455 | /* BB fix here and in unicode clause above ie | 2454 | /* BB fix here and in unicode clause above ie |
2456 | if(name_len > buffersize-header) | 2455 | if(name_len > buffersize-header) |
2457 | free buffer exit; BB */ | 2456 | free buffer exit; BB */ |
2458 | strncpy(pSMB->FileName, searchName, name_len); | 2457 | strncpy(pSMB->FileName, searchName, name_len); |
2459 | pSMB->FileName[name_len] = 0; /* just in case */ | 2458 | pSMB->FileName[name_len] = '\\'; |
2459 | pSMB->FileName[name_len+1] = '*'; | ||
2460 | pSMB->FileName[name_len+2] = 0; | ||
2461 | name_len += 3; | ||
2460 | } | 2462 | } |
2461 | 2463 | ||
2462 | params = 12 + name_len /* includes null */ ; | 2464 | params = 12 + name_len /* includes null */ ; |