Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/printing/printfsp.c

    r133 r228  
    2929
    3030NTSTATUS print_fsp_open(connection_struct *conn, const char *fname,
    31                         files_struct **result)
     31                        files_struct *fsp)
    3232{
    3333        int jobid;
    3434        SMB_STRUCT_STAT sbuf;
    35         files_struct *fsp;
    3635        fstring name;
    3736        NTSTATUS status;
    38 
    39         status = file_new(conn, &fsp);
    40         if(!NT_STATUS_IS_OK(status)) {
    41                 return status;
    42         }
    4337
    4438        fstrcpy( name, "Remote Downlevel Document");
     
    5549        if (jobid == -1) {
    5650                status = map_nt_error_from_unix(errno);
    57                 file_free(fsp);
    5851                return status;
    5952        }
     
    6457                /* We need to delete the entry in the tdb. */
    6558                pjob_delete(lp_const_servicename(SNUM(conn)), jobid);
    66                 file_free(fsp);
    6759                return NT_STATUS_ACCESS_DENIED; /* No errno around here */
    6860        }
     
    8375        fsp->is_directory = False;
    8476        string_set(&fsp->fsp_name,print_job_fname(lp_const_servicename(SNUM(conn)),jobid));
    85         fsp->wcp = NULL; 
     77        fsp->wcp = NULL;
    8678        SMB_VFS_FSTAT(fsp, &sbuf);
    8779        fsp->mode = sbuf.st_mode;
    8880        fsp->file_id = vfs_file_id_from_sbuf(conn, &sbuf);
    8981
    90         conn->num_files_open++;
    91 
    92         *result = fsp;
    9382        return NT_STATUS_OK;
    9483}
Note: See TracChangeset for help on using the changeset viewer.