Changeset 746 for vendor/current/source3/smbd/vfs.c
- Timestamp:
- Nov 27, 2012, 4:56:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/smbd/vfs.c
r740 r746 1126 1126 } 1127 1127 1128 /** 1129 * Initialize num_streams and streams, then call VFS op streaminfo 1130 */ 1131 NTSTATUS vfs_streaminfo(connection_struct *conn, 1132 struct files_struct *fsp, 1133 const char *fname, 1134 TALLOC_CTX *mem_ctx, 1135 unsigned int *num_streams, 1136 struct stream_struct **streams) 1137 { 1138 *num_streams = 0; 1139 *streams = NULL; 1140 return SMB_VFS_STREAMINFO(conn, fsp, fname, mem_ctx, num_streams, streams); 1141 } 1142 1128 1143 /* 1129 1144 generate a file_id from a stat structure … … 1501 1516 1502 1517 /* cd into the parent dir to pin it. */ 1503 ret = SMB_VFS_CHDIR(fsp->conn, parent_dir);1518 ret = vfs_ChDir(fsp->conn, parent_dir); 1504 1519 if (ret == -1) { 1505 1520 return map_nt_error_from_unix(errno); … … 1512 1527 ret = SMB_VFS_LSTAT(fsp->conn, &local_fname); 1513 1528 if (ret == -1) { 1514 return map_nt_error_from_unix(errno); 1529 status = map_nt_error_from_unix(errno); 1530 goto out; 1515 1531 } 1516 1532 1517 1533 /* Ensure it matches the fsp stat. */ 1518 1534 if (!check_same_stat(&local_fname.st, &fsp->fsp_name->st)) { 1519 return NT_STATUS_ACCESS_DENIED; 1535 status = NT_STATUS_ACCESS_DENIED; 1536 goto out; 1520 1537 } 1521 1538 path = final_component; … … 1540 1557 } 1541 1558 1559 out: 1560 1542 1561 if (as_root) { 1543 1562 vfs_ChDir(fsp->conn,saved_dir);
Note:
See TracChangeset
for help on using the changeset viewer.