summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-15 03:53:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:27 -0500
commitdfadefb1eb45b12e39249781f58830dd10d97002 (patch)
tree82b2819d7213fec3156bfa5108386e6ef3d6b475 /source4
parentefdf83f4a676d8c8faa66e3c073c72a0d649bde8 (diff)
downloadsamba-dfadefb1eb45b12e39249781f58830dd10d97002.tar.gz
samba-dfadefb1eb45b12e39249781f58830dd10d97002.tar.bz2
samba-dfadefb1eb45b12e39249781f58830dd10d97002.zip
r4214: possibly fix the "no-EAs" bug from OS/2
(This used to be commit c9871253485b1a663fc79649742d3a89e81eb6d4)
Diffstat (limited to 'source4')
-rw-r--r--source4/smb_server/trans2.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source4/smb_server/trans2.c b/source4/smb_server/trans2.c
index c3768d6ee0..b75c8eb71a 100644
--- a/source4/smb_server/trans2.c
+++ b/source4/smb_server/trans2.c
@@ -512,6 +512,7 @@ static NTSTATUS trans2_fileinfo_fill(struct smbsrv_request *req, struct smb_tran
union smb_fileinfo *st)
{
uint_t i;
+ uint32_t list_size;
switch (st->generic.level) {
case RAW_FILEINFO_GENERIC:
@@ -613,18 +614,12 @@ static NTSTATUS trans2_fileinfo_fill(struct smbsrv_request *req, struct smb_tran
return NT_STATUS_OK;
case RAW_FILEINFO_ALL_EAS:
- if (st->all_eas.out.num_eas == 0) {
- trans2_setup_reply(req, trans, 2, 4, 0);
- SSVAL(trans->out.params.data, 0, 0);
- SIVAL(trans->out.data.data, 0, 0);
- } else {
- uint32_t list_size = ea_list_size(st->all_eas.out.num_eas,
+ list_size = ea_list_size(st->all_eas.out.num_eas,
st->all_eas.out.eas);
trans2_setup_reply(req, trans, 2, list_size, 0);
SSVAL(trans->out.params.data, 0, 0);
ea_put_list(trans->out.data.data,
st->all_eas.out.num_eas, st->all_eas.out.eas);
- }
return NT_STATUS_OK;
case RAW_FILEINFO_ACCESS_INFORMATION: