smbd: Avoid pointless strcsequal calls
authorVolker Lendecke <vl@samba.org>
Fri, 6 Dec 2013 12:10:37 +0000 (12:10 +0000)
committerStefan Metzmacher <metze@samba.org>
Sat, 14 Dec 2013 09:11:57 +0000 (10:11 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/vfs.c

index a8e181ab420317de5351963dad048ed28495908c..44690c2ba225d1b69771eab7926a0b0284b3eae7 100644 (file)
@@ -828,7 +828,7 @@ int vfs_ChDir(connection_struct *conn, const char *path)
                LastDir = SMB_STRDUP("");
        }
 
-       if (strcsequal(path,".")) {
+       if (ISDOT(path)) {
                return 0;
        }