The branch, master has been updated
       via  4079efae767 s3:modules: Reduce debug level if file doesn't exists 
on dfs share
      from  5ae2d4e4d0f s3: smbd: Optimization in non_widelink_open(). Don't 
need to vfs_ChDir(parent_dir_fname) if parent is "."

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 4079efae76718a84a4cf24b6613cdc53cdb2dd39
Author: Andreas Schneider <a...@samba.org>
Date:   Wed May 26 15:04:08 2021 +0200

    s3:modules: Reduce debug level if file doesn't exists on dfs share
    
    There is software out there trying to open desktop.ini in every
    directory. Avoid spamming the logs with error messages.
    
    Signed-off-by: Andreas Schneider <a...@samba.org>
    Reviewed-by: Jeremy Allison <j...@samba.org>
    
    Autobuild-User(master): Jeremy Allison <j...@samba.org>
    Autobuild-Date(master): Fri Jun 18 18:14:11 UTC 2021 on sn-devel-184

-----------------------------------------------------------------------

Summary of changes:
 source3/modules/vfs_default.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 79531f83483..9acc5bda0ad 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -474,10 +474,17 @@ static NTSTATUS vfswrap_read_dfs_pathat(struct 
vfs_handle_struct *handle,
                        status = NT_STATUS_OBJECT_TYPE_MISMATCH;
                } else {
                        status = map_nt_error_from_unix(errno);
-                       DBG_ERR("Error reading "
-                               "msdfs link %s: %s\n",
-                               smb_fname->base_name,
-                               strerror(errno));
+                       if (errno == ENOENT) {
+                               DBG_NOTICE("Error reading "
+                                        "msdfs link %s: %s\n",
+                                        smb_fname->base_name,
+                                        strerror(errno));
+                       } else {
+                               DBG_ERR("Error reading "
+                                       "msdfs link %s: %s\n",
+                                       smb_fname->base_name,
+                                       strerror(errno));
+                       }
                }
                 goto err;
         }


-- 
Samba Shared Repository

Reply via email to