Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/smbd/vfs.c

    r745 r751  
    11341134}
    11351135
     1136/**
     1137 * Initialize num_streams and streams, then call VFS op streaminfo
     1138 */
     1139NTSTATUS vfs_streaminfo(connection_struct *conn,
     1140                        struct files_struct *fsp,
     1141                        const char *fname,
     1142                        TALLOC_CTX *mem_ctx,
     1143                        unsigned int *num_streams,
     1144                        struct stream_struct **streams)
     1145{
     1146        *num_streams = 0;
     1147        *streams = NULL;
     1148        return SMB_VFS_STREAMINFO(conn, fsp, fname, mem_ctx, num_streams, streams);
     1149}
     1150
    11361151/*
    11371152  generate a file_id from a stat structure
     
    15091524
    15101525                /* cd into the parent dir to pin it. */
    1511                 ret = SMB_VFS_CHDIR(fsp->conn, parent_dir);
     1526                ret = vfs_ChDir(fsp->conn, parent_dir);
    15121527                if (ret == -1) {
    15131528                        return map_nt_error_from_unix(errno);
     
    15201535                ret = SMB_VFS_LSTAT(fsp->conn, &local_fname);
    15211536                if (ret == -1) {
    1522                         return map_nt_error_from_unix(errno);
     1537                        status = map_nt_error_from_unix(errno);
     1538                        goto out;
    15231539                }
    15241540
    15251541                /* Ensure it matches the fsp stat. */
    15261542                if (!check_same_stat(&local_fname.st, &fsp->fsp_name->st)) {
    1527                         return NT_STATUS_ACCESS_DENIED;
     1543                        status = NT_STATUS_ACCESS_DENIED;
     1544                        goto out;
    15281545                }
    15291546                path = final_component;
     
    15481565        }
    15491566
     1567  out:
     1568
    15501569        if (as_root) {
    15511570                vfs_ChDir(fsp->conn,saved_dir);
Note: See TracChangeset for help on using the changeset viewer.