The Samba-Bugzilla – Attachment 5573 Details for
Bug 7310
DOS attribute inconsistency with MS Office
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am patch for 3.5.2
0001-Fix-bug-7310-DOS-attribute-inconsistency-with-MS-Off.patch (text/plain), 1.18 KB, created by
Jeremy Allison
on 2010-03-31 01:01:02 UTC
(
hide
)
Description:
git-am patch for 3.5.2
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2010-03-31 01:01:02 UTC
Size:
1.18 KB
patch
obsolete
>From 22b5a91fa7130b359bf2149e9fc9a1693432050a Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Tue, 30 Mar 2010 22:16:37 -0700 >Subject: [PATCH] Fix bug 7310 - DOS attribute inconsistency with MS Office > >On rename we need to set the archive bit on the renamed file. > >Jeremy >--- > source3/smbd/reply.c | 15 +++++++++++++++ > 1 files changed, 15 insertions(+), 0 deletions(-) > >diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c >index 8d40ed6..32b4495 100644 >--- a/source3/smbd/reply.c >+++ b/source3/smbd/reply.c >@@ -5846,6 +5846,21 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, > "%s -> %s\n", smb_fname_str_dbg(fsp->fsp_name), > smb_fname_str_dbg(smb_fname_dst))); > >+ if (lp_map_archive(SNUM(conn)) || >+ lp_store_dos_attributes(SNUM(conn))) { >+ /* We must set the archive bit on the newly >+ renamed file. */ >+ if (SMB_VFS_STAT(conn, smb_fname_dst) == 0) { >+ uint32_t old_dosmode = dos_mode(conn, >+ smb_fname_dst); >+ file_set_dosmode(conn, >+ smb_fname_dst, >+ old_dosmode | FILE_ATTRIBUTE_ARCHIVE, >+ NULL, >+ true); >+ } >+ } >+ > notify_rename(conn, fsp->is_directory, fsp->fsp_name, > smb_fname_dst); > >-- >1.6.3.3 >
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
Flags:
vl
:
review+
Actions:
View
Attachments on
bug 7310
:
5566
|
5567
|
5568
|
5569
|
5570
|
5571
|
5572
| 5573 |
5574