From 955f08866d56fe2c232a2b7b2ca69b4421c8092b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 27 Jan 2022 10:03:36 -0800 Subject: [PATCH] s3: smbd: Add lp_smb2_unix_extensions() function. Always returns false for now. For now *always* returns false. This allows me to add code into smbd contingent on lp_smb2_unix_extensions() which I know will not be executed until all the parts are in place. Then the real parameter can be added (default to off) and testing added. Signed-off-by: Jeremy Allison Reviewed-by: Andreas Schneider --- source3/param/loadparm.c | 6 ++++++ source3/param/loadparm.h | 1 + 2 files changed, 7 insertions(+) diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 199052c37a2..151e808c199 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -4811,3 +4811,9 @@ uint32_t lp_get_async_dns_timeout(void) */ return MAX(Globals.async_dns_timeout, 1); } + +/* SMB2 POSIX extensions. For now, *always* disabled. */ +bool lp_smb2_unix_extensions(void) +{ + return false; +} diff --git a/source3/param/loadparm.h b/source3/param/loadparm.h index 9f7b4bd1cdb..52197ae4979 100644 --- a/source3/param/loadparm.h +++ b/source3/param/loadparm.h @@ -183,6 +183,7 @@ void widelinks_warning(int snum); const char *lp_ncalrpc_dir(void); void _lp_set_server_role(int server_role); uint32_t lp_get_async_dns_timeout(void); +bool lp_smb2_unix_extensions(void); /* The following definitions come from param/loadparm_ctx.c */