The Samba-Bugzilla – Attachment 6143 Details for
Bug 7815
sparse bit handling needs to be more windows-like
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0005-s3-smbd-don-t-filter-attribs-in-g-set_ea_dos_attribu.patch
0005-s3-smbd-don-t-filter-attribs-in-g-set_ea_dos_attribu.patch (text/plain), 1.44 KB, created by
Björn Jacke
on 2010-12-16 17:29:35 UTC
(
hide
)
Description:
0005-s3-smbd-don-t-filter-attribs-in-g-set_ea_dos_attribu.patch
Filename:
MIME Type:
Creator:
Björn Jacke
Created:
2010-12-16 17:29:35 UTC
Size:
1.44 KB
patch
obsolete
>From 24243d5c1928c16eb2744ce9792b09de8d41b085 Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >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 <bj@sernet.de> >--- > 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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7815
:
6139
|
6140
|
6141
|
6142
|
6143
|
6144
|
6145
|
6146
|
6147
|
6148
|
6149
|
6150
|
6155