]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: lp_widelinks(). Turn off widelinks if either SMB1 or SMB2 unix extensions...
authorJeremy Allison <jra@samba.org>
Thu, 27 Jan 2022 18:07:07 +0000 (10:07 -0800)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 1 Feb 2022 16:30:37 +0000 (16:30 +0000)
NB. Currently it's impossible to turn on SMB2 unix extensions.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/param/loadparm.c

index 151e808c199309d0f9bdf27ef3f5ca92a6b65cc3..ac2b4ea61d73cdf7bf528c7f47182b1715adbf03 100644 (file)
@@ -4671,7 +4671,7 @@ void widelinks_warning(int snum)
 bool lp_widelinks(int snum)
 {
        /* wide links is always incompatible with unix extensions */
-       if (lp_smb1_unix_extensions()) {
+       if (lp_smb1_unix_extensions() || lp_smb2_unix_extensions()) {
                /*
                 * Unless we have "allow insecure widelinks"
                 * turned on.