From e5b9a027ff860fd5f34cf91acd14a43f3d6dfbce Mon Sep 17 00:00:00 2001
From: Jeremy Allison <jra@samba.org>
Date: Mon, 28 Nov 2005 17:03:50 +0000
Subject: r11943: Don't reset attrs to zero in EA get - we are adding to the
 attr list not resetting it. Jeremy. (This used to be commit
 8ee569626be7ebf3b6ebf71e1becdd091b9e893a)

---
 source3/smbd/dosmode.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'source3/smbd')

diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index 5dfeddb80ac..7f3bda582df 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -190,7 +190,8 @@ static BOOL get_ea_dos_attribute(connection_struct *conn, const char *path,SMB_S
 		return False;
 	}
 
-	*pattr = 0;
+	/* Don't reset pattr to zero as we may already have filename-based attributes we
+	   need to preserve. */
 
 	sizeret = SMB_VFS_GETXATTR(conn, path, SAMBA_XATTR_DOS_ATTRIB, attrstr, sizeof(attrstr));
 	if (sizeret == -1) {
-- 
cgit