Skip to content

Commit

Permalink
s3: smbd: Update widelinks_warning() to cope with SMB1 and SMB2 unix …
Browse files Browse the repository at this point in the history
…extensions.

Signed-off-by: Jeremy Allison <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>
  • Loading branch information
jrasamba authored and cryptomilk committed Feb 1, 2022
1 parent 7a5fea2 commit fadb2d6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions source3/param/loadparm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}

Expand Down

0 comments on commit fadb2d6

Please sign in to comment.