Ignore:
Timestamp:
Jun 9, 2016, 2:23:12 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: apply latest security patches to trunk

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/smbd/vfs.c

    r918 r920  
    991991                const char *conn_rootdir;
    992992                size_t rootdir_len;
     993                bool matched;
    993994
    994995                conn_rootdir = SMB_VFS_CONNECTPATH(conn, fname);
     
    10011002
    10021003                rootdir_len = strlen(conn_rootdir);
    1003                 if (strncmp(conn_rootdir, resolved_name,
    1004                                 rootdir_len) != 0) {
     1004                matched = (strncmp(conn_rootdir, resolved_name,
     1005                                rootdir_len) == 0);
     1006                if (!matched || (resolved_name[rootdir_len] != '/' &&
     1007                                 resolved_name[rootdir_len] != '\0')) {
    10051008                        DEBUG(2, ("check_reduced_name: Bad access "
    10061009                                "attempt: %s is a symlink outside the "
Note: See TracChangeset for help on using the changeset viewer.