1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3:modules: fix the picky-developer build of vfs_virusfilter.c on FreeBSD 11

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13344

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Björn Jacke <bjacke@samba.org>
This commit is contained in:
Stefan Metzmacher 2018-03-20 12:10:01 +01:00
parent dc160247d1
commit fb7b67af98

View File

@ -275,8 +275,9 @@ static int virusfilter_vfs_connect(
temp_quarantine_dir_mode = lp_parm_const_string(
snum, "virusfilter", "quarantine directory mode", "0755");
if (temp_quarantine_dir_mode != NULL) {
sscanf(temp_quarantine_dir_mode, "%o",
&config->quarantine_dir_mode);
unsigned int mode = 0;
sscanf(temp_quarantine_dir_mode, "%o", &mode);
config->quarantine_dir_mode = mode;
}
config->quarantine_prefix = lp_parm_const_string(