Ignore:
Timestamp:
Nov 27, 2012, 4:56:06 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated vendor to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/smbd/vfs.c

    r740 r746  
    11261126}
    11271127
     1128/**
     1129 * Initialize num_streams and streams, then call VFS op streaminfo
     1130 */
     1131NTSTATUS vfs_streaminfo(connection_struct *conn,
     1132                        struct files_struct *fsp,
     1133                        const char *fname,
     1134                        TALLOC_CTX *mem_ctx,
     1135                        unsigned int *num_streams,
     1136                        struct stream_struct **streams)
     1137{
     1138        *num_streams = 0;
     1139        *streams = NULL;
     1140        return SMB_VFS_STREAMINFO(conn, fsp, fname, mem_ctx, num_streams, streams);
     1141}
     1142
    11281143/*
    11291144  generate a file_id from a stat structure
     
    15011516
    15021517                /* cd into the parent dir to pin it. */
    1503                 ret = SMB_VFS_CHDIR(fsp->conn, parent_dir);
     1518                ret = vfs_ChDir(fsp->conn, parent_dir);
    15041519                if (ret == -1) {
    15051520                        return map_nt_error_from_unix(errno);
     
    15121527                ret = SMB_VFS_LSTAT(fsp->conn, &local_fname);
    15131528                if (ret == -1) {
    1514                         return map_nt_error_from_unix(errno);
     1529                        status = map_nt_error_from_unix(errno);
     1530                        goto out;
    15151531                }
    15161532
    15171533                /* Ensure it matches the fsp stat. */
    15181534                if (!check_same_stat(&local_fname.st, &fsp->fsp_name->st)) {
    1519                         return NT_STATUS_ACCESS_DENIED;
     1535                        status = NT_STATUS_ACCESS_DENIED;
     1536                        goto out;
    15201537                }
    15211538                path = final_component;
     
    15401557        }
    15411558
     1559  out:
     1560
    15421561        if (as_root) {
    15431562                vfs_ChDir(fsp->conn,saved_dir);
Note: See TracChangeset for help on using the changeset viewer.