r4230: now that we set the FLAGS2_EXTENDED_ATTRIBUTES flag, we should mark
authorAndrew Tridgell <tridge@samba.org>
Thu, 16 Dec 2004 12:29:47 +0000 (12:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:28 +0000 (13:07 -0500)
empty EAs as being of size 4, not size 0
(This used to be commit 76bd6476785e4145437768caa702c01a7801590e)

source4/ntvfs/posix/pvfs_fileinfo.c

index fa454441598e48b72cc19a73567674b5c64c4930..aafecf0950332e6a6300ef3149225db87e19fa90 100644 (file)
@@ -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;