]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Fix indentation of if-expressions
authorVolker Lendecke <vl@samba.org>
Tue, 4 Sep 2012 07:16:55 +0000 (09:16 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 25 Sep 2012 08:08:15 +0000 (10:08 +0200)
To me this makes open_file_ntcreate a little easier to understand

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Sep 25 10:08:15 CEST 2012 on sn-devel-104

source3/smbd/open.c

index 73127075bbc98d84008883b3b1424bdab2b6c9eb..d142d960f7ec6e2577003ff1d5870faf0851a2f2 100644 (file)
@@ -2122,12 +2122,13 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
         */
 
        if ((access_mask & (FILE_WRITE_DATA | FILE_APPEND_DATA)) ||
-                       (oplock_request & FORCE_OPLOCK_BREAK_TO_NONE)) {
+           (oplock_request & FORCE_OPLOCK_BREAK_TO_NONE)) {
                /* DENY_DOS opens are always underlying read-write on the
                   file handle, no matter what the requested access mask
                    says. */
                if ((private_flags & NTCREATEX_OPTIONS_PRIVATE_DENY_DOS) ||
-                       access_mask & (FILE_READ_ATTRIBUTES|FILE_READ_DATA|FILE_READ_EA|FILE_EXECUTE)) {
+                   access_mask & (FILE_READ_ATTRIBUTES|FILE_READ_DATA|
+                                  FILE_READ_EA|FILE_EXECUTE)) {
                        flags = O_RDWR;
                } else {
                        flags = O_WRONLY;