s3: smbd: Reformat caller of user_can_write_file().
authorJeremy Allison <jra@samba.org>
Thu, 30 Apr 2020 22:30:40 +0000 (15:30 -0700)
committerRalph Boehme <slow@samba.org>
Mon, 4 May 2020 13:55:32 +0000 (13:55 +0000)
Make new parameter addition clearer.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c

index 144f193ffbb60cc0235d7519044d95a866641462..1ac273664f898f514a55a0843bd7f807d4d2bfd5 100644 (file)
@@ -1279,8 +1279,10 @@ bool is_visible_file(connection_struct *conn,
                        goto out;
                }
                /* Honour _hide unwriteable_ option */
-               if (hide_unwriteable && !user_can_write_file(conn,
-                                                            smb_fname_base)) {
+               if (hide_unwriteable &&
+                   !user_can_write_file(conn,
+                               smb_fname_base))
+               {
                        DEBUG(10,("is_visible_file: file %s is unwritable.\n",
                                 entry ));
                        ret = false;