]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Update widelinks_warning() to cope with SMB1 and SMB2 unix extensions.
authorJeremy Allison <jra@samba.org>
Thu, 27 Jan 2022 18:11:58 +0000 (10:11 -0800)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 1 Feb 2022 16:30:37 +0000 (16:30 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/param/loadparm.c

index ac2b4ea61d73cdf7bf528c7f47182b1715adbf03..96b72c2dfe0654f50d9adfd12b54beab1364edaf 100644 (file)
@@ -4660,11 +4660,20 @@ void widelinks_warning(int snum)
                return;
        }
 
-       if (lp_smb1_unix_extensions() && lp_wide_links(snum)) {
-               DBG_ERR("Share '%s' has wide links and unix extensions enabled. "
+       if (lp_wide_links(snum)) {
+               if (lp_smb1_unix_extensions()) {
+                       DBG_ERR("Share '%s' has wide links and SMB1 unix "
+                       "extensions enabled. "
                        "These parameters are incompatible. "
                        "Wide links will be disabled for this share.\n",
                         lp_const_servicename(snum));
+               } else if (lp_smb2_unix_extensions()) {
+                       DBG_ERR("Share '%s' has wide links and SMB2 unix "
+                       "extensions enabled. "
+                       "These parameters are incompatible. "
+                       "Wide links will be disabled for this share.\n",
+                        lp_const_servicename(snum));
+               }
        }
 }