Changeset 370 for branches/samba-3.3.x/source/smbd/reply.c
- Timestamp:
- Jan 15, 2010, 8:23:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/smbd/reply.c
r342 r370 51 51 char *d = path; 52 52 const char *s = path; 53 NTSTATUS ret = NT_STATUS_OK;54 53 bool start_of_name_component = True; 55 54 bool stream_started = false; 55 bool check_quota = false; 56 56 57 57 *p_last_component_contains_wcard = False; … … 71 71 } 72 72 if (StrCaseCmp(s, ":$DATA") != 0) { 73 return NT_STATUS_INVALID_PARAMETER;73 check_quota = true; 74 74 } 75 75 break; … … 132 132 /* Are we at the start ? Can't go back further if so. */ 133 133 if (d <= path) { 134 ret = NT_STATUS_OBJECT_PATH_SYNTAX_BAD; 135 break; 134 return NT_STATUS_OBJECT_PATH_SYNTAX_BAD; 136 135 } 137 136 /* Go back one level... */ … … 206 205 *d = '\0'; 207 206 208 return ret; 207 if (check_quota) { 208 if (StrCaseCmp(path, FAKE_FILE_NAME_QUOTA_UNIX) != 0) { 209 return NT_STATUS_INVALID_PARAMETER; 210 } 211 } 212 213 return NT_STATUS_OK; 209 214 } 210 215
Note:
See TracChangeset
for help on using the changeset viewer.