1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

s3:vfs_fruit: Fix crash for nbands == 0

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Pavel Filipenský 2025-01-02 18:25:22 +01:00 committed by Pavel Filipensky
parent 05d79abdc0
commit ab4d68fc92
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@
# "make test" will not report failures for tests listed here and will consider
# a successful run for any of these tests an error.
^samba3.vfs.fruit_timemachine # this fails as number of band==0 causes divison by 0
^samba3.blackbox.failure.failure # this is designed to fail, for testing our test infrastructure
.*driver.add_driver_timestamps # we only can store dates, not timestamps
^samba3.smbtorture_s3.crypt_server\(nt4_dc\).SMB2-SESSION-REAUTH # expected to give ACCESS_DENIED SMB2.1 doesn't have encryption

View File

@ -5213,7 +5213,7 @@ static bool fruit_get_num_bands(vfs_handle_struct *handle,
TALLOC_FREE(bands_dir);
*_nbands = nbands;
return true;
return nbands > 0;
}
static bool fruit_tmsize_do_dirent(vfs_handle_struct *handle,