]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/param: remove widelinks check and warning for SMB3 UNIX Extensions
authorRalph Boehme <slow@samba.org>
Wed, 5 Mar 2025 17:00:33 +0000 (18:00 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 7 Mar 2025 19:00:32 +0000 (19:00 +0000)
SMB3 POSIX clients won't be able to create real symlinks, so we can relax these
checks.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/param/loadparm.c

index e04288d2304a803e8b1c87699c4816ced2eb1189..a62da148b3823fe91ec536a939ce624fcafe00a1 100644 (file)
@@ -4740,12 +4740,6 @@ void widelinks_warning(int snum)
                        "These parameters are incompatible. "
                        "Wide links will be disabled for this share.\n",
                         lp_const_servicename(snum));
-               } else if (lp_smb3_unix_extensions(snum)) {
-                       DBG_ERR("Share '%s' has wide links and SMB3 Unix "
-                               "extensions enabled. "
-                               "These parameters are incompatible. "
-                               "Wide links will be disabled for this share.\n",
-                               lp_const_servicename(snum));
                }
        }
 }
@@ -4753,7 +4747,7 @@ void widelinks_warning(int snum)
 bool lp_widelinks(int snum)
 {
        /* wide links is always incompatible with unix extensions */
-       if (lp_smb1_unix_extensions() || lp_smb3_unix_extensions(snum)) {
+       if (lp_smb1_unix_extensions()) {
                /*
                 * Unless we have "allow insecure widelinks"
                 * turned on.