[PATCH] vfs_acl_xattr|tdb: set create mask to 0777 if ignore_system_acls is set

jim jim.brown at rsmas.miami.edu
Wed Apr 19 13:13:11 UTC 2017


You need an else case to set and display the create mask with DBG_NOTICE 
if (create_mask & 0666) == 0666.
Or, change the if block to only add 0666 to create_mask and always 
format/print/set create_mask_str from create_mask.

On 4/19/2017 5:57 AM, Ralph Böhme via samba-technical wrote:
> -		DBG_NOTICE("setting 'create mask = 0666', "
> -			   "'directory mask = 0777', "
> +		mode_t create_mask = lp_create_mask(SNUM(handle->conn));
> +		char *create_mask_str = NULL;
> +
> +		if ((create_mask & 0666) != 0666) {




More information about the samba-technical mailing list