Don't forget brackets around bitwise tests.
authorJeremy Allison <jra@samba.org>
Sat, 22 May 2010 00:12:40 +0000 (17:12 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 22 May 2010 00:12:40 +0000 (17:12 -0700)
Jeremy.

source3/smbd/smb2_create.c

index b4b265b9f5eb3d532338bf9405e2fc90df3c8764..ed702717f3a0ed9d555f5515e7ee62fd445708d0 100644 (file)
@@ -678,7 +678,7 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
                 * will do the path processing.
                 */
 
-               if (!smb1req->flags2 & FLAGS2_DFS_PATHNAMES) {
+               if (!(smb1req->flags2 & FLAGS2_DFS_PATHNAMES)) {
                        /* convert '\\' into '/' */
                        status = check_path_syntax(fname);
                        if (!NT_STATUS_IS_OK(status)) {