From: Stefan Metzmacher Date: Thu, 2 Jul 2020 10:06:28 +0000 (+0200) Subject: s3:smbd: reformat if statement for caching in vfs_ChDir() X-Git-Tag: samba-4.13.0rc1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2b5ae090ee8796609eb0b5794bc4e62c24414ef;p=thirdparty%2Fsamba.git s3:smbd: reformat if statement for caching in vfs_ChDir() BUG: https://bugzilla.samba.org/show_bug.cgi?id=14427 Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 38b4070139d..0b45bb153a1 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -895,8 +895,9 @@ int vfs_ChDir(connection_struct *conn, const struct smb_filename *smb_fname) return 0; } - if (*smb_fname->base_name == '/' && - strcsequal(LastDir,smb_fname->base_name)) { + if (smb_fname->base_name[0] == '/' && + strcsequal(LastDir,smb_fname->base_name)) + { return 0; }