Changeset 740 for vendor/current/source3/smbd/fileio.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
-
vendor/current/source3/smbd/fileio.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/smbd/fileio.c
r587 r740 21 21 22 22 #include "includes.h" 23 24 23 25 #include "smbd/globals.h" 26 24 27 25 28 static bool setup_write_cache(files_struct *, SMB_OFF_T); … … 128 131 } else { 129 132 fsp->fh->pos = pos; 130 if (pos && lp_strict_allocate(SNUM(fsp->conn))) { 133 if (pos && lp_strict_allocate(SNUM(fsp->conn) && 134 !fsp->is_sparse)) { 131 135 if (vfs_fill_sparse(fsp, pos) == -1) { 132 136 return -1; … … 292 296 293 297 if (fsp->print_file) { 294 uint32 jobid;295 296 if (!rap_to_pjobid(fsp->rap_print_jobid, NULL, &jobid)) { 297 DEBUG(3,("write_file: Unable to map RAP jobid %u to jobid.\n",298 (unsigned int)fsp->rap_print_jobid ));299 errno = EBADF;298 uint32; 299 int ret; 300 301 302 303 errno = ; 300 304 return -1; 301 305 } 302 303 return print_job_write(SNUM(fsp->conn), jobid, data, pos, n); 306 return t; 304 307 } 305 308 … … 320 323 if (!IS_DOS_ARCHIVE(dosmode)) { 321 324 file_set_dosmode(fsp->conn, fsp->fsp_name, 322 dosmode | aARCH, NULL, false);325 dosmode | , NULL, false); 323 326 } 324 327 } … … 403 406 fsp->fh->pos = pos + n; 404 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 405 439 /* 406 440 * If we have active cache and it isn't contiguous then we flush. … … 794 828 } 795 829 #endif 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 796 850 memcpy(wcp->data+wcp->data_size, data, n); 797 851 if (wcp->data_size == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
