Changeset 732 for branches/samba-3.5.x/source3/modules
- Timestamp:
- Nov 12, 2012, 4:35:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/modules/vfs_acl_common.c
r599 r732 248 248 struct security_descriptor **ppdesc) 249 249 { 250 DATA_BLOB blob ;250 DATA_BLOB blob = data_blob_null; 251 251 NTSTATUS status; 252 252 uint16_t hash_type; … … 826 826 struct smb_filename local_fname; 827 827 int saved_errno = 0; 828 char *saved_dir = NULL; 829 830 saved_dir = vfs_GetWd(talloc_tos(),conn); 831 if (!saved_dir) { 832 saved_errno = errno; 833 goto out; 834 } 828 835 829 836 if (!parent_dirname(talloc_tos(), path, … … 838 845 839 846 /* cd into the parent dir to pin it. */ 840 ret = SMB_VFS_CHDIR(conn, parent_dir);847 ret = vfs_ChDir(conn, parent_dir); 841 848 if (ret == -1) { 842 849 saved_errno = errno; … … 856 863 /* Ensure we have this file open with DELETE access. */ 857 864 id = vfs_file_id_from_sbuf(conn, &local_fname.st); 858 for (fsp = file_find_di_first(id); fsp; f ile_find_di_next(fsp)) {865 for (fsp = file_find_di_first(id); fsp; fsp = file_find_di_next(fsp)) { 859 866 if (fsp->access_mask & DELETE_ACCESS && 860 867 fsp->delete_on_close) { … … 891 898 TALLOC_FREE(parent_dir); 892 899 893 vfs_ChDir(conn, conn->connectpath); 900 if (saved_dir) { 901 vfs_ChDir(conn, saved_dir); 902 } 894 903 if (saved_errno) { 895 904 errno = saved_errno;
Note:
See TracChangeset
for help on using the changeset viewer.