Changeset 746 for vendor/current/source3/smbd/statcache.c
- Timestamp:
- Nov 27, 2012, 4:56:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/smbd/statcache.c
r740 r746 151 151 * 152 152 * @param conn A connection struct to do the stat() with. 153 * @param posix_paths Whether to lookup using stat() or lstat() 153 154 * @param name The path we are attempting to cache, modified by this routine 154 155 * to be correct as far as the cache can tell us. We assume that … … 167 168 168 169 bool stat_cache_lookup(connection_struct *conn, 170 bool posix_paths, 169 171 char **pp_name, 170 172 char **pp_dirpath, … … 182 184 TALLOC_CTX *ctx = talloc_tos(); 183 185 struct smb_filename smb_fname; 186 int ret; 184 187 185 188 *pp_dirpath = NULL; … … 284 287 smb_fname.base_name = translated_path; 285 288 286 if (SMB_VFS_STAT(conn, &smb_fname) != 0) { 289 if (posix_paths) { 290 ret = SMB_VFS_LSTAT(conn, &smb_fname); 291 } else { 292 ret = SMB_VFS_STAT(conn, &smb_fname); 293 } 294 295 if (ret != 0) { 287 296 /* Discard this entry - it doesn't exist in the filesystem. */ 288 297 memcache_delete(smbd_memcache(), STAT_CACHE,
Note:
See TracChangeset
for help on using the changeset viewer.