Changeset 751 for trunk/server/source3/smbd/vfs.c
- Timestamp:
- Nov 29, 2012, 1:59:04 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/server/source3/smbd/vfs.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/smbd/vfs.c
r745 r751 1134 1134 } 1135 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1136 1151 /* 1137 1152 generate a file_id from a stat structure … … 1509 1524 1510 1525 /* cd into the parent dir to pin it. */ 1511 ret = SMB_VFS_CHDIR(fsp->conn, parent_dir);1526 ret = (fsp->conn, parent_dir); 1512 1527 if (ret == -1) { 1513 1528 return map_nt_error_from_unix(errno); … … 1520 1535 ret = SMB_VFS_LSTAT(fsp->conn, &local_fname); 1521 1536 if (ret == -1) { 1522 return map_nt_error_from_unix(errno); 1537 status = map_nt_error_from_unix(errno); 1538 goto out; 1523 1539 } 1524 1540 1525 1541 /* Ensure it matches the fsp stat. */ 1526 1542 if (!check_same_stat(&local_fname.st, &fsp->fsp_name->st)) { 1527 return NT_STATUS_ACCESS_DENIED; 1543 status = NT_STATUS_ACCESS_DENIED; 1544 goto out; 1528 1545 } 1529 1546 path = final_component; … … 1548 1565 } 1549 1566 1567 1568 1550 1569 if (as_root) { 1551 1570 vfs_ChDir(fsp->conn,saved_dir);
Note:
See TracChangeset
for help on using the changeset viewer.
