Ignore:
Timestamp:
Jan 15, 2010, 8:23:30 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.10 (source)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/smbd/reply.c

    r342 r370  
    5151        char *d = path;
    5252        const char *s = path;
    53         NTSTATUS ret = NT_STATUS_OK;
    5453        bool start_of_name_component = True;
    5554        bool stream_started = false;
     55        bool check_quota = false;
    5656
    5757        *p_last_component_contains_wcard = False;
     
    7171                                }
    7272                                if (StrCaseCmp(s, ":$DATA") != 0) {
    73                                         return NT_STATUS_INVALID_PARAMETER;
     73                                        check_quota = true;
    7474                                }
    7575                                break;
     
    132132                                /* Are we at the start ? Can't go back further if so. */
    133133                                if (d <= path) {
    134                                         ret = NT_STATUS_OBJECT_PATH_SYNTAX_BAD;
    135                                         break;
     134                                        return NT_STATUS_OBJECT_PATH_SYNTAX_BAD;
    136135                                }
    137136                                /* Go back one level... */
     
    206205        *d = '\0';
    207206
    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;
    209214}
    210215
Note: See TracChangeset for help on using the changeset viewer.