mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
vfs_fruit: stat AFP_AfpInfo must fail when it doesn't exist
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
748adea77f
commit
0af7bf4249
@ -2878,6 +2878,17 @@ static int fruit_stat_meta(vfs_handle_struct *handle,
|
||||
struct smb_filename *smb_fname,
|
||||
bool follow_links)
|
||||
{
|
||||
struct adouble *ad = NULL;
|
||||
|
||||
ad = ad_get(talloc_tos(), handle, smb_fname->base_name, ADOUBLE_META);
|
||||
if (ad == NULL) {
|
||||
DBG_INFO("fruit_stat_meta %s: %s\n",
|
||||
smb_fname_str_dbg(smb_fname), strerror(errno));
|
||||
errno = ENOENT;
|
||||
return -1;
|
||||
}
|
||||
TALLOC_FREE(ad);
|
||||
|
||||
/* Populate the stat struct with info from the base file. */
|
||||
if (fruit_stat_base(handle, smb_fname, follow_links) == -1) {
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user