Ignore:
Timestamp:
May 27, 2009, 11:39:15 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.9

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  
    204204        DOM_SID *psid_owner, /* in */
    205205        DOM_SID *psid_group, /* in */
     206        bool is_directory, /* in */
    206207        SEC_ACE **ppnt_ace_list, /* out */
    207208        int *pgood_aces /* out */
     
    262263                           sid_string_dbg(&sid)));
    263264
     265                if (is_directory && (ace->aceMask & SMB_ACE4_ADD_FILE)) {
     266                        ace->aceMask |= SMB_ACE4_DELETE_CHILD;
     267                }
    264268                init_sec_access(&mask, ace->aceMask);
    265269                init_sec_ace(&nt_ace_list[good_aces++], &sid,
     
    293297        gid_to_sid(&sid_group, sbuf->st_gid);
    294298
    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) {
    296301                DEBUG(8,("smbacl4_nfs42win failed\n"));
    297302                return map_nt_error_from_unix(errno);
  • branches/samba-3.2.x/source/modules/vfs_default.c

    r232 r233  
    671671                times.actime = convert_timespec_to_time_t(ts[0]);
    672672                times.modtime = convert_timespec_to_time_t(ts[1]);
    673                 result = utime(path, times);
     673                result = utime(path, &times);
    674674        } else {
    675675                result = utime(path, NULL);
  • branches/samba-3.2.x/source/modules/vfs_streams_depot.c

    r232 r233  
    7979        DEBUG(10, ("file_is_valid (%s) called\n", path));
    8080
    81         if (SMB_VFS_NEXT_GETXATTR(handle, path, SAMBA_XATTR_MARKER,
     81        if (SMB_VFS_GETXATTR(handle->conn, path, SAMBA_XATTR_MARKER,
    8282                                  &buf, sizeof(buf)) != sizeof(buf)) {
    8383                DEBUG(10, ("GETXATTR failed: %s\n", strerror(errno)));
     
    105105        DEBUG(10, ("marking file %s as valid\n", path));
    106106
    107         ret = SMB_VFS_NEXT_SETXATTR(handle, path, SAMBA_XATTR_MARKER,
     107        ret = SMB_VFS_SETXATTR(handle->conn, path, SAMBA_XATTR_MARKER,
    108108                                    &buf, sizeof(buf), 0);
    109109
     
    496496         */
    497497
    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) {
    499505                return -1;
    500506        }
     
    680686                        return NT_STATUS_INVALID_PARAMETER;
    681687                }
    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                }
    683693        }
    684694
  • branches/samba-3.2.x/source/modules/vfs_streams_xattr.c

    r232 r233  
    136136                               SMB_STRUCT_STAT *sbuf)
    137137{
     138        int ret = -1;
    138139        struct stream_io *io = (struct stream_io *)
    139140                VFS_FETCH_FSP_EXTENSION(handle, fsp);
     
    149150        }
    150151
    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) {
    152159                return -1;
    153160        }
     
    719726                        return NT_STATUS_INVALID_PARAMETER;
    720727                }
    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                }
    722733        }
    723734
Note: See TracChangeset for help on using the changeset viewer.