Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

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

    r587 r740  
    2121
    2222#include "includes.h"
     23
     24
    2325#include "smbd/globals.h"
     26
    2427
    2528static bool setup_write_cache(files_struct *, SMB_OFF_T);
     
    128131        } else {
    129132                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)) {
    131135                        if (vfs_fill_sparse(fsp, pos) == -1) {
    132136                                return -1;
     
    292296
    293297        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 = ;
    300304                        return -1;
    301305                }
    302 
    303                 return print_job_write(SNUM(fsp->conn), jobid, data, pos, n);
     306                return t;
    304307        }
    305308
     
    320323                                if (!IS_DOS_ARCHIVE(dosmode)) {
    321324                                        file_set_dosmode(fsp->conn, fsp->fsp_name,
    322                                                  dosmode | aARCH, NULL, false);
     325                                                 dosmode | , NULL, false);
    323326                                }
    324327                        }
     
    403406        fsp->fh->pos = pos + n;
    404407
     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
    405439        /*
    406440         * If we have active cache and it isn't contiguous then we flush.
     
    794828                }
    795829#endif
     830
     831
     832
     833
     834
     835
     836
     837
     838
     839
     840
     841
     842
     843
     844
     845
     846
     847
     848
     849
    796850                memcpy(wcp->data+wcp->data_size, data, n);
    797851                if (wcp->data_size == 0) {
Note: See TracChangeset for help on using the changeset viewer.