Changeset 228 for branches/samba-3.2.x/source/printing/printfsp.c
- Timestamp:
- May 26, 2009, 9:44:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/printing/printfsp.c
r133 r228 29 29 30 30 NTSTATUS print_fsp_open(connection_struct *conn, const char *fname, 31 files_struct * *result)31 files_struct *fsp) 32 32 { 33 33 int jobid; 34 34 SMB_STRUCT_STAT sbuf; 35 files_struct *fsp;36 35 fstring name; 37 36 NTSTATUS status; 38 39 status = file_new(conn, &fsp);40 if(!NT_STATUS_IS_OK(status)) {41 return status;42 }43 37 44 38 fstrcpy( name, "Remote Downlevel Document"); … … 55 49 if (jobid == -1) { 56 50 status = map_nt_error_from_unix(errno); 57 file_free(fsp);58 51 return status; 59 52 } … … 64 57 /* We need to delete the entry in the tdb. */ 65 58 pjob_delete(lp_const_servicename(SNUM(conn)), jobid); 66 file_free(fsp);67 59 return NT_STATUS_ACCESS_DENIED; /* No errno around here */ 68 60 } … … 83 75 fsp->is_directory = False; 84 76 string_set(&fsp->fsp_name,print_job_fname(lp_const_servicename(SNUM(conn)),jobid)); 85 fsp->wcp = NULL; 77 fsp->wcp = NULL; 86 78 SMB_VFS_FSTAT(fsp, &sbuf); 87 79 fsp->mode = sbuf.st_mode; 88 80 fsp->file_id = vfs_file_id_from_sbuf(conn, &sbuf); 89 81 90 conn->num_files_open++;91 92 *result = fsp;93 82 return NT_STATUS_OK; 94 83 }
Note:
See TracChangeset
for help on using the changeset viewer.