]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: update_btime() is only needed for metadata=netatalk
authorRalph Boehme <slow@samba.org>
Fri, 2 Dec 2016 16:25:47 +0000 (17:25 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 1 Mar 2017 23:32:21 +0000 (00:32 +0100)
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>
source3/modules/vfs_fruit.c

index 67c974e7a322eae759025699e33d5dbe5939f8b9..b30a3c0aba72dbf8a3494850cc824b07c4e9bcb0 100644 (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) {