Ignore:
Timestamp:
Jul 2, 2011, 3:35:33 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/modules/vfs_default.c

    r414 r596  
    218218            && parent_dirname(talloc_tos(), path, &parent, NULL)
    219219            && (has_dacl = directory_has_default_acl(handle->conn, parent)))
    220                 mode = 0777;
     220                mode = (0777 & lp_dir_mask(SNUM(handle->conn)));
    221221
    222222        TALLOC_FREE(parent);
     
    899899                result = utimensat(AT_FDCWD, smb_fname->base_name, NULL, 0);
    900900        }
    901 #elif defined(HAVE_UTIMES)
     901        if (!((result == -1) && (errno == ENOSYS))) {
     902                goto out;
     903        }
     904#endif
     905#if defined(HAVE_UTIMES)
    902906        if (ft != NULL) {
    903907                struct timeval tv[2];
     
    908912                result = utimes(smb_fname->base_name, NULL);
    909913        }
    910 #elif defined(HAVE_UTIME)
     914        if (!((result == -1) && (errno == ENOSYS))) {
     915                goto out;
     916        }
     917#endif
     918#if defined(HAVE_UTIME)
    911919        if (ft != NULL) {
    912920                struct utimbuf times;
     
    917925                result = utime(smb_fname->base_name, NULL);
    918926        }
    919 #else
     927        if (!((result == -1) && (errno == ENOSYS))) {
     928                goto out;
     929        }
     930#endif
    920931        errno = ENOSYS;
    921932        result = -1;
    922 #endif
    923933
    924934 out:
Note: See TracChangeset for help on using the changeset viewer.