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

vfs_fruit: update_btime() is only needed for metadata=netatalk

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:
Ralph Boehme 2016-12-02 17:25:47 +01:00 committed by Uri Simchoni
parent cb1121ec32
commit 79159f8dc9

View File

@ -1641,6 +1641,21 @@ static void update_btime(vfs_handle_struct *handle,
uint32_t t;
struct timespec creation_time = {0};
struct adouble *ad;
struct fruit_config_data *config = NULL;
SMB_VFS_HANDLE_GET_DATA(handle, config, struct fruit_config_data,
return);
switch (config->meta) {
case FRUIT_META_STREAM:
return;
case FRUIT_META_NETATALK:
/* Handled below */
break;
default:
DBG_ERR("Unexpected meta config [%d]\n", config->meta);
return;
}
ad = ad_get(talloc_tos(), handle, smb_fname->base_name, ADOUBLE_META);
if (ad == NULL) {