mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
vfs_fruit: fix fruit_ntimes() for the fruit:metadata!=netatalk case
The following code must only be executed for the fruit:metadata=netatalk case. Otherwise no change in behaviour. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12427 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
This commit is contained in:
parent
ef2c81eb9f
commit
b0b785b0d4
@ -4209,9 +4209,15 @@ static int fruit_ntimes(vfs_handle_struct *handle,
|
||||
{
|
||||
int rc = 0;
|
||||
struct adouble *ad = NULL;
|
||||
struct fruit_config_data *config = NULL;
|
||||
|
||||
if (null_timespec(ft->create_time)) {
|
||||
goto exit;
|
||||
SMB_VFS_HANDLE_GET_DATA(handle, config, struct fruit_config_data,
|
||||
return -1);
|
||||
|
||||
if ((config->meta != FRUIT_META_NETATALK) ||
|
||||
null_timespec(ft->create_time))
|
||||
{
|
||||
return SMB_VFS_NEXT_NTIMES(handle, smb_fname, ft);
|
||||
}
|
||||
|
||||
DEBUG(10,("set btime for %s to %s\n", smb_fname_str_dbg(smb_fname),
|
||||
|
Loading…
Reference in New Issue
Block a user