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:
parent
cb1121ec32
commit
79159f8dc9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user