mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
s3: smbd: Update widelinks_warning() to cope with SMB1 and SMB2 unix extensions.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
7a5fea262f
commit
fadb2d60ae
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user