Changeset 919 for vendor/current/source3/smbd/vfs.c
- Timestamp:
- Jun 9, 2016, 2:17:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/smbd/vfs.c
r917 r919 983 983 const char *conn_rootdir; 984 984 size_t rootdir_len; 985 bool matched; 985 986 986 987 conn_rootdir = SMB_VFS_CONNECTPATH(conn, fname); … … 993 994 994 995 rootdir_len = strlen(conn_rootdir); 995 if (strncmp(conn_rootdir, resolved_name, 996 rootdir_len) != 0) { 996 matched = (strncmp(conn_rootdir, resolved_name, 997 rootdir_len) == 0); 998 if (!matched || (resolved_name[rootdir_len] != '/' && 999 resolved_name[rootdir_len] != '\0')) { 997 1000 DEBUG(2, ("check_reduced_name: Bad access " 998 1001 "attempt: %s is a symlink outside the "
Note:
See TracChangeset
for help on using the changeset viewer.