Changeset 751 for trunk/server/source3/smbd/vfs.c
- Timestamp:
- Nov 29, 2012, 1:59:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/smbd/vfs.c
r745 r751 1134 1134 } 1135 1135 1136 /** 1137 * Initialize num_streams and streams, then call VFS op streaminfo 1138 */ 1139 NTSTATUS vfs_streaminfo(connection_struct *conn, 1140 struct files_struct *fsp, 1141 const char *fname, 1142 TALLOC_CTX *mem_ctx, 1143 unsigned int *num_streams, 1144 struct stream_struct **streams) 1145 { 1146 *num_streams = 0; 1147 *streams = NULL; 1148 return SMB_VFS_STREAMINFO(conn, fsp, fname, mem_ctx, num_streams, streams); 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 = vfs_ChDir(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 out: 1568 1550 1569 if (as_root) { 1551 1570 vfs_ChDir(fsp->conn,saved_dir);
Note:
See TracChangeset
for help on using the changeset viewer.