The Samba-Bugzilla – Attachment 5572 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 format patch for 3.4.x.
0001-Fix-bug-7310-DOS-attribute-inconsistency-with-MS-Off.patch (text/plain), 1.24 KB, created by
Jeremy Allison
on 2010-03-31 00:26:42 UTC
(
hide
)
Description:
git-am format patch for 3.4.x.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2010-03-31 00:26:42 UTC
Size:
1.24 KB
patch
obsolete
>From f8faa727e25d85fef0e495d3896a9ecbc8852b4d Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Tue, 30 Mar 2010 22:24:19 -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 | 17 +++++++++++++++++ > 1 files changed, 17 insertions(+), 0 deletions(-) > >diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c >index 23fa3e8..c9a8216 100644 >--- a/source3/smbd/reply.c >+++ b/source3/smbd/reply.c >@@ -5815,6 +5815,23 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, > DEBUG(3,("rename_internals_fsp: succeeded doing rename on %s -> %s\n", > fsp->fsp_name,newname)); > >+ 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,newname,&sbuf1) == 0) { >+ uint32_t old_dosmode = dos_mode(conn, >+ newname, >+ &sbuf1); >+ file_set_dosmode(conn, >+ newname, >+ old_dosmode | FILE_ATTRIBUTE_ARCHIVE, >+ &sbuf1, >+ NULL, >+ false); >+ } >+ } >+ > notify_rename(conn, fsp->is_directory, fsp->fsp_name, newname); > > rename_open_files(conn, lck, newname); >-- >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
Actions:
View
Attachments on
bug 7310
:
5566
|
5567
|
5568
|
5569
|
5570
|
5571
|
5572
|
5573
|
5574