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

Samba Server: updated vendor to 3.6.9

File:
1 edited

Legend:

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

    r740 r746  
    151151 *
    152152 * @param conn    A connection struct to do the stat() with.
     153 * @param posix_paths Whether to lookup using stat() or lstat()
    153154 * @param name    The path we are attempting to cache, modified by this routine
    154155 *                to be correct as far as the cache can tell us. We assume that
     
    167168
    168169bool stat_cache_lookup(connection_struct *conn,
     170                        bool posix_paths,
    169171                        char **pp_name,
    170172                        char **pp_dirpath,
     
    182184        TALLOC_CTX *ctx = talloc_tos();
    183185        struct smb_filename smb_fname;
     186        int ret;
    184187
    185188        *pp_dirpath = NULL;
     
    284287        smb_fname.base_name = translated_path;
    285288
    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) {
    287296                /* Discard this entry - it doesn't exist in the filesystem. */
    288297                memcache_delete(smbd_memcache(), STAT_CACHE,
Note: See TracChangeset for help on using the changeset viewer.