From 24243d5c1928c16eb2744ce9792b09de8d41b085 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 14 Dec 2010 10:17:05 +0100 Subject: [PATCH 5/8] s3:smbd: don't filter attribs in g/set_ea_dos_attribute() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The filtering should happen at a higher level. Currently it happens in file_set_dosmode() on set and there's no point in filtering on get currently. metze Signed-off-by: Björn Jacke --- source3/smbd/dosmode.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index 5d6e4b4..0573fe3 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -317,7 +317,7 @@ static bool get_ea_dos_attribute(connection_struct *conn, if (S_ISDIR(smb_fname->st.st_ex_mode)) { dosattr |= aDIR; } - *pattr = (uint32)(dosattr & SAMBA_ATTRIBUTES_MASK); + *pattr = dosattr; DEBUG(8,("get_ea_dos_attribute returning (0x%x)", dosattr)); @@ -695,9 +695,6 @@ int file_set_dosmode(connection_struct *conn, struct smb_filename *smb_fname, uint32_t old_mode; struct timespec new_create_timespec; - /* We only allow READONLY|HIDDEN|SYSTEM|DIRECTORY|ARCHIVE here. */ - dosmode &= (SAMBA_ATTRIBUTES_MASK | FILE_ATTRIBUTE_OFFLINE); - DEBUG(10,("file_set_dosmode: setting dos mode 0x%x on file %s\n", dosmode, smb_fname_str_dbg(smb_fname))); -- 1.7.3.1