Changeset 745 for trunk/server/source4/ntvfs/simple
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source4/ntvfs/simple/svfs_util.c
r414 r745 64 64 DIR *odir; 65 65 struct dirent *dent; 66 u int_t allocated = 0;66 unsigned int allocated = 0; 67 67 char *low_mask; 68 68 … … 91 91 92 92 while ((dent = readdir(odir))) { 93 u int_t i = dir->count;93 unsigned int i = dir->count; 94 94 char *full_name; 95 95 char *low_name; … … 121 121 if (!dir->files[i].name) { continue; } 122 122 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); 124 125 if (!full_name) { continue; } 125 126 … … 128 129 } 129 130 130 free(full_name);131 talloc_free(full_name); 131 132 } 132 133 -
trunk/server/source4/ntvfs/simple/vfs_simple.c
r414 r745 71 71 72 72 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; 76 76 } 77 77 } … … 834 834 fs->generic.out.fs_type = talloc_strdup(req, "NTFS"); 835 835 fs->generic.out.volume_name = talloc_strdup(req, 836 lp _servicename(req->tcon->service));836 lpcfg_servicename(req->tcon->service)); 837 837 838 838 return NT_STATUS_OK; … … 862 862 struct search_state *search; 863 863 union smb_search_data file; 864 u int_t max_count;864 unsigned int max_count; 865 865 866 866 if (io->generic.level != RAW_SEARCH_TRANS2) { … … 936 936 struct search_state *search; 937 937 union smb_search_data file; 938 u int_t max_count;938 unsigned int max_count; 939 939 940 940 if (io->generic.level != RAW_SEARCH_TRANS2) {
Note:
See TracChangeset
for help on using the changeset viewer.