s3: Remove some code that has become unnecessary
authorVolker Lendecke <vl@samba.org>
Thu, 7 Jan 2010 13:50:43 +0000 (14:50 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 7 Jan 2010 13:58:55 +0000 (14:58 +0100)
The code I just removed was checked in with e5466fffc286a99f as a bug fix for
https://bugzilla.samba.org/show_bug.cgi?id=3319. With the changes to
is_visible_file made with 9e8b8f8c16612 these lines have become unnecessary,
even with "hide unreadable = yes" dead msdfs symlinks show. This is because we
can not stat(2) them and default to showing them.

Why this change? I have a user who wants to use "hide unreadable" on msdfs
links. Because you can't edit acls on symlinks themselves, the user created the
targets as bogus, empty files that just exist as acl placeholders. With the
code in place that this patch removes, we never allow this to work.

Jeremy, please check! :-)

Thanks,

Volker

source3/smbd/dir.c

index 5ce4a7b09945abf11f4e023cd774df471561ab0c..3fe32187623cfa6668ac9a4562c31b8ea0865029 100644 (file)
@@ -1227,14 +1227,6 @@ bool is_visible_file(connection_struct *conn, const char *dir_path,
                        goto out;
                }
 
-               /* If it's a dfs symlink, ignore _hide xxxx_ options */
-               if (lp_host_msdfs() &&
-                               lp_msdfs_root(SNUM(conn)) &&
-                               is_msdfs_link(conn, entry, NULL)) {
-                       ret = true;
-                       goto out;
-               }
-
                /* Create an smb_filename with stream_name == NULL. */
                status = create_synthetic_smb_fname(talloc_tos(), entry, NULL,
                                                    pst, &smb_fname_base);