1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

smbd: use fdos_mode() in file_set_sparse()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2020-10-19 20:29:28 +02:00
parent 180e0a7d92
commit 54b4321f61

View File

@ -1211,7 +1211,7 @@ NTSTATUS file_set_sparse(connection_struct *conn,
return status;
}
old_dosmode = dos_mode(conn, fsp->fsp_name);
old_dosmode = fdos_mode(fsp);
if (sparse && !(old_dosmode & FILE_ATTRIBUTE_SPARSE)) {
new_dosmode = old_dosmode | FILE_ATTRIBUTE_SPARSE;