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:
parent
05d79abdc0
commit
ab4d68fc92
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user