1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3: smbd: Reformat caller of user_can_write_file().

Make new parameter addition clearer.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2020-04-30 15:30:40 -07:00 committed by Ralph Boehme
parent 839a2fb7a5
commit 6d83b785cf

View 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;