[PATCH] s3:libsmb: Fix a bug in conversion of ea list to ea array.

Anubhav Rakshit anubhav.rakshit at gmail.com
Fri Jun 26 01:13:32 MDT 2015


Bug 11361 - Reading of EA's (Extended Attributes) fails using SMB2 and above
protocols

Tested against Win2k12r2 server.

Signed-off-by: Anubhav Rakshit <anubhav at hedviginc.com>
---
 source3/libsmb/cli_smb2_fnum.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c
index 21c0340..816ad13 100644
--- a/source3/libsmb/cli_smb2_fnum.c
+++ b/source3/libsmb/cli_smb2_fnum.c
@@ -2194,7 +2194,7 @@ NTSTATUS cli_smb2_get_ea_list_path(struct cli_state *cli,
 		}
 		ea_count = 0;
 		for (eal = ea_list; eal; eal = eal->next) {
-			(*pea_array)[ea_count++] = ea_list->ea;
+			(*pea_array)[ea_count++] = eal->ea;
 		}
 		*pnum_eas = ea_count;
 	}
-- 
1.7.0.4




More information about the samba-technical mailing list