mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
vfs: Change the condition when to fill the getwd cache
The next patch will add another excluding condition, this change keeps the if-condition that is changed here simple. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
0ab88a1fe7
commit
c31e7aecba
@ -1086,7 +1086,7 @@ struct smb_filename *vfs_GetWd(TALLOC_CTX *ctx, connection_struct *conn)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (lp_getwd_cache() && VALID_STAT(smb_fname_dot->st)) {
|
||||
if ((smb_fname_dot != NULL) && VALID_STAT(smb_fname_dot->st)) {
|
||||
key = vfs_file_id_from_sbuf(conn, &smb_fname_dot->st);
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user