nfs4_acls: Add warning for deprecated setting nfs4:mode special
authorChristof Schmitt <cs@samba.org>
Wed, 19 Jun 2019 20:53:54 +0000 (13:53 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:28 +0000 (18:27 +0000)
The documentation states this has been deprecated for years. Add logging
a warning when this is set. Maybe this can be removed in the future.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/nfs4_acls.c

index 46b69ac3d826c8dad908595ad6ad4eef66328673..5b4d43adc8a11770355d16ace53915f57fbb7d35 100644 (file)
@@ -82,6 +82,9 @@ int smbacl4_get_vfs_params(struct connection_struct *conn,
                return -1;
        }
        params->mode = (enum smbacl4_mode_enum)enumval;
+       if (params->mode == e_special) {
+               DBG_WARNING("nfs4:mode special is deprecated.\n");
+       }
 
        params->do_chown = lp_parm_bool(SNUM(conn), SMBACL4_PARAM_TYPE_NAME,
                "chown", true);