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

vfs_fruit: correct fruit_stat_meta_stream() implementation

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 11:12:18 +01:00 committed by Uri Simchoni
parent aaf2ae1b2b
commit cb1121ec32

View File

@ -3122,6 +3122,21 @@ static int fruit_stat_base(vfs_handle_struct *handle,
return rc;
}
static int fruit_stat_meta_stream(vfs_handle_struct *handle,
struct smb_filename *smb_fname,
bool follow_links)
{
int ret;
if (follow_links) {
ret = SMB_VFS_NEXT_STAT(handle, smb_fname);
} else {
ret = SMB_VFS_NEXT_LSTAT(handle, smb_fname);
}
return ret;
}
static int fruit_stat_meta_netatalk(vfs_handle_struct *handle,
struct smb_filename *smb_fname,
bool follow_links)
@ -3159,6 +3174,9 @@ static int fruit_stat_meta(vfs_handle_struct *handle,
switch (config->meta) {
case FRUIT_META_STREAM:
ret = fruit_stat_meta_stream(handle, smb_fname, follow_links);
break;
case FRUIT_META_NETATALK:
ret = fruit_stat_meta_netatalk(handle, smb_fname, follow_links);
break;