From: Andrew Tridgell Date: Thu, 16 Dec 2004 12:29:47 +0000 (+0000) Subject: r4230: now that we set the FLAGS2_EXTENDED_ATTRIBUTES flag, we should mark X-Git-Tag: samba-4.0.0alpha6~801^3~12293 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=145702b75604be85f71d9e0e5b8fe048da439958;ds=sidebyside r4230: now that we set the FLAGS2_EXTENDED_ATTRIBUTES flag, we should mark empty EAs as being of size 4, not size 0 (This used to be commit 76bd6476785e4145437768caa702c01a7801590e) --- diff --git a/source4/ntvfs/posix/pvfs_fileinfo.c b/source4/ntvfs/posix/pvfs_fileinfo.c index fa454441598..aafecf09503 100644 --- a/source4/ntvfs/posix/pvfs_fileinfo.c +++ b/source4/ntvfs/posix/pvfs_fileinfo.c @@ -95,7 +95,7 @@ NTSTATUS pvfs_fill_dos_info(struct pvfs_state *pvfs, struct pvfs_filename *name, name->dos.attrib = dos_mode_from_stat(pvfs, &name->st); name->dos.alloc_size = pvfs_round_alloc_size(pvfs, name->st.st_size); name->dos.nlink = name->st.st_nlink; - name->dos.ea_size = 0; + name->dos.ea_size = 4; name->dos.file_id = (((uint64_t)name->st.st_dev)<<32) | name->st.st_ino; name->dos.flags = 0;