Changeset 233 for branches/samba-3.2.x/source/modules
- Timestamp:
- May 27, 2009, 11:39:15 AM (16 years ago)
- Location:
- branches/samba-3.2.x/source/modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/modules/nfs4_acls.c
r232 r233 204 204 DOM_SID *psid_owner, /* in */ 205 205 DOM_SID *psid_group, /* in */ 206 bool is_directory, /* in */ 206 207 SEC_ACE **ppnt_ace_list, /* out */ 207 208 int *pgood_aces /* out */ … … 262 263 sid_string_dbg(&sid))); 263 264 265 if (is_directory && (ace->aceMask & SMB_ACE4_ADD_FILE)) { 266 ace->aceMask |= SMB_ACE4_DELETE_CHILD; 267 } 264 268 init_sec_access(&mask, ace->aceMask); 265 269 init_sec_ace(&nt_ace_list[good_aces++], &sid, … … 293 297 gid_to_sid(&sid_group, sbuf->st_gid); 294 298 295 if (smbacl4_nfs42win(mem_ctx, acl, &sid_owner, &sid_group, &nt_ace_list, &good_aces)==False) { 299 if (smbacl4_nfs42win(mem_ctx, acl, &sid_owner, &sid_group, S_ISDIR(sbuf->st_mode), 300 &nt_ace_list, &good_aces)==False) { 296 301 DEBUG(8,("smbacl4_nfs42win failed\n")); 297 302 return map_nt_error_from_unix(errno); -
branches/samba-3.2.x/source/modules/vfs_default.c
r232 r233 671 671 times.actime = convert_timespec_to_time_t(ts[0]); 672 672 times.modtime = convert_timespec_to_time_t(ts[1]); 673 result = utime(path, times);673 result = utime(path, ×); 674 674 } else { 675 675 result = utime(path, NULL); -
branches/samba-3.2.x/source/modules/vfs_streams_depot.c
r232 r233 79 79 DEBUG(10, ("file_is_valid (%s) called\n", path)); 80 80 81 if (SMB_VFS_ NEXT_GETXATTR(handle, path, SAMBA_XATTR_MARKER,81 if (SMB_VFS_GETXATTR(handle->conn, path, SAMBA_XATTR_MARKER, 82 82 &buf, sizeof(buf)) != sizeof(buf)) { 83 83 DEBUG(10, ("GETXATTR failed: %s\n", strerror(errno))); … … 105 105 DEBUG(10, ("marking file %s as valid\n", path)); 106 106 107 ret = SMB_VFS_ NEXT_SETXATTR(handle, path, SAMBA_XATTR_MARKER,107 ret = SMB_VFS_SETXATTR(handle->conn, path, SAMBA_XATTR_MARKER, 108 108 &buf, sizeof(buf), 0); 109 109 … … 496 496 */ 497 497 498 if (SMB_VFS_NEXT_STAT(handle, fname, &sbuf) == -1) { 498 if (lp_posix_pathnames()) { 499 ret = SMB_VFS_NEXT_LSTAT(handle, fname, &sbuf); 500 } else { 501 ret = SMB_VFS_NEXT_STAT(handle, fname, &sbuf); 502 } 503 504 if (ret == -1) { 499 505 return -1; 500 506 } … … 680 686 return NT_STATUS_INVALID_PARAMETER; 681 687 } 682 ret = SMB_VFS_NEXT_STAT(handle, fname, &sbuf); 688 if (lp_posix_pathnames()) { 689 ret = SMB_VFS_NEXT_LSTAT(handle, fname, &sbuf); 690 } else { 691 ret = SMB_VFS_NEXT_STAT(handle, fname, &sbuf); 692 } 683 693 } 684 694 -
branches/samba-3.2.x/source/modules/vfs_streams_xattr.c
r232 r233 136 136 SMB_STRUCT_STAT *sbuf) 137 137 { 138 int ret = -1; 138 139 struct stream_io *io = (struct stream_io *) 139 140 VFS_FETCH_FSP_EXTENSION(handle, fsp); … … 149 150 } 150 151 151 if (SMB_VFS_STAT(handle->conn, io->base, sbuf) == -1) { 152 if (lp_posix_pathnames()) { 153 ret = SMB_VFS_LSTAT(handle->conn, io->base, sbuf); 154 } else { 155 ret = SMB_VFS_STAT(handle->conn, io->base, sbuf); 156 } 157 158 if (ret == -1) { 152 159 return -1; 153 160 } … … 719 726 return NT_STATUS_INVALID_PARAMETER; 720 727 } 721 ret = SMB_VFS_STAT(handle->conn, fname, &sbuf); 728 if (lp_posix_pathnames()) { 729 ret = SMB_VFS_LSTAT(handle->conn, fname, &sbuf); 730 } else { 731 ret = SMB_VFS_STAT(handle->conn, fname, &sbuf); 732 } 722 733 } 723 734
Note:
See TracChangeset
for help on using the changeset viewer.