summaryrefslogtreecommitdiffstats
path: root/source/smbd/dosmode.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-11-28 17:03:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:38 -0500
commit8ee569626be7ebf3b6ebf71e1becdd091b9e893a (patch)
tree8cd2ec60ad5c0ae025fcaa44bcff89281065365e /source/smbd/dosmode.c
parent3e05e88bb6c0618ecc460045b72d86e82929af01 (diff)
downloadsamba-8ee569626be7ebf3b6ebf71e1becdd091b9e893a.tar.gz
samba-8ee569626be7ebf3b6ebf71e1becdd091b9e893a.tar.xz
samba-8ee569626be7ebf3b6ebf71e1becdd091b9e893a.zip
r11943: Don't reset attrs to zero in EA get - we are adding
to the attr list not resetting it. Jeremy.
Diffstat (limited to 'source/smbd/dosmode.c')
-rw-r--r--source/smbd/dosmode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbd/dosmode.c b/source/smbd/dosmode.c
index 5dfeddb80ac..7f3bda582df 100644
--- a/source/smbd/dosmode.c
+++ b/source/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) {