Changeset 596 for trunk/server/source3/modules/vfs_default.c
- Timestamp:
- Jul 2, 2011, 3:35:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/modules/vfs_default.c
r414 r596 218 218 && parent_dirname(talloc_tos(), path, &parent, NULL) 219 219 && (has_dacl = directory_has_default_acl(handle->conn, parent))) 220 mode = 0777;220 mode = (0777 & lp_dir_mask(SNUM(handle->conn))); 221 221 222 222 TALLOC_FREE(parent); … … 899 899 result = utimensat(AT_FDCWD, smb_fname->base_name, NULL, 0); 900 900 } 901 #elif defined(HAVE_UTIMES) 901 if (!((result == -1) && (errno == ENOSYS))) { 902 goto out; 903 } 904 #endif 905 #if defined(HAVE_UTIMES) 902 906 if (ft != NULL) { 903 907 struct timeval tv[2]; … … 908 912 result = utimes(smb_fname->base_name, NULL); 909 913 } 910 #elif defined(HAVE_UTIME) 914 if (!((result == -1) && (errno == ENOSYS))) { 915 goto out; 916 } 917 #endif 918 #if defined(HAVE_UTIME) 911 919 if (ft != NULL) { 912 920 struct utimbuf times; … … 917 925 result = utime(smb_fname->base_name, NULL); 918 926 } 919 #else 927 if (!((result == -1) && (errno == ENOSYS))) { 928 goto out; 929 } 930 #endif 920 931 errno = ENOSYS; 921 932 result = -1; 922 #endif923 933 924 934 out:
Note:
See TracChangeset
for help on using the changeset viewer.