From cc76e2c7d7d2535a736420283a38a89f17f5c21e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 19 Sep 2024 16:09:43 +0200 Subject: [PATCH] smbd: We can expect the file to exist in is_visible_fsp() Another leftover from symlinks in posix context to not open an fsp Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/dir.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 147515fe2f5..406db604f8e 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -921,15 +921,6 @@ bool is_visible_fsp(struct files_struct *fsp) int hide_new_files_timeout = 0; const char *last_component = NULL; - /* - * If the file does not exist, there's no point checking - * the configuration options. We succeed, on the basis that the - * checks *might* have passed if the file was present. - */ - if (fsp == NULL) { - return true; - } - hide_unreadable = lp_hide_unreadable(SNUM(fsp->conn)); hide_unwriteable = lp_hide_unwriteable_files(SNUM(fsp->conn)); hide_special = lp_hide_special_files(SNUM(fsp->conn)); -- 2.47.2