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

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source4/ntvfs/simple/svfs_util.c

    r414 r745  
    6464        DIR *odir;
    6565        struct dirent *dent;
    66         uint_t allocated = 0;
     66        unsigned int allocated = 0;
    6767        char *low_mask;
    6868
     
    9191
    9292        while ((dent = readdir(odir))) {
    93                 uint_t i = dir->count;
     93                unsigned int i = dir->count;
    9494                char *full_name;
    9595                char *low_name;
     
    121121                if (!dir->files[i].name) { continue; }
    122122
    123                 asprintf(&full_name, "%s/%s", dir->unix_dir, dir->files[i].name);
     123                full_name = talloc_asprintf(mem_ctx, "%s/%s", dir->unix_dir,
     124                                            dir->files[i].name);
    124125                if (!full_name) { continue; }
    125126
     
    128129                }
    129130
    130                 free(full_name);
     131                talloc_free(full_name);
    131132        }
    132133
  • trunk/server/source4/ntvfs/simple/vfs_simple.c

    r414 r745  
    7171
    7272        if (strncmp(sharename, "\\\\", 2) == 0) {
    73                 char *p = strchr(sharename+2, '\\');
    74                 if (p) {
    75                         sharename = p + 1;
     73                char *p2 = strchr(sharename+2, '\\');
     74                if (p2) {
     75                        sharename = p2 + 1;
    7676                }
    7777        }
     
    834834        fs->generic.out.fs_type = talloc_strdup(req, "NTFS");
    835835        fs->generic.out.volume_name = talloc_strdup(req,
    836                                                     lp_servicename(req->tcon->service));
     836                                                    lpcfg_servicename(req->tcon->service));
    837837
    838838        return NT_STATUS_OK;
     
    862862        struct search_state *search;
    863863        union smb_search_data file;
    864         uint_t max_count;
     864        unsigned int max_count;
    865865
    866866        if (io->generic.level != RAW_SEARCH_TRANS2) {
     
    936936        struct search_state *search;
    937937        union smb_search_data file;
    938         uint_t max_count;
     938        unsigned int max_count;
    939939
    940940        if (io->generic.level != RAW_SEARCH_TRANS2) {
Note: See TracChangeset for help on using the changeset viewer.