The branch, v3-5-test has been updated
       via  40e76ebad2611516071f97a1c9f8e5bb2acf685f (commit)
       via  c8b6d81aa82d4bd4a23332d9796617e78c20ec7f (commit)
      from  8d999676f7f5adf4e8a0b3ae1c2f52a68aa1a65c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit 40e76ebad2611516071f97a1c9f8e5bb2acf685f
Author: Volker Lendecke <v...@samba.org>
Date:   Wed Sep 9 21:58:47 2009 +0200

    s3:smbd: Add a "hidden" parameter "share:fake_fscaps"
    
    This is needed to support some special app I've just come across where I 
had to
    set the SPARSE_FILES bit (0x40) to make it work against Samba at all. There
    might be others to fake. This is definitely a "Don't touch if you don't know
    what you're doing" thing, so I decided to make this an undocumented 
parametric
    parameter.
    
    I know this sucks, so feel free to beat me up on this. But I don't think it
    will hurt.

commit c8b6d81aa82d4bd4a23332d9796617e78c20ec7f
Author: Jeremy Allison <j...@samba.org>
Date:   Wed Sep 9 13:54:47 2009 -0700

    Fix compile in a usually non-selected define.
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source3/modules/vfs_default.c |    2 +-
 source3/smbd/trans2.c         |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index e78ddf2..408721a 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -139,7 +139,7 @@ static uint32_t vfswrap_fs_capabilities(struct 
vfs_handle_struct *handle,
                *p_ts_res = TIMESTAMP_SET_MSEC;
 #elif defined(HAVE_UTIME)
                /* utime only allows sec timestamps to be set. */
-               *p_ts_res = TIMESTAMP_SET_SEC;
+               *p_ts_res = TIMESTAMP_SET_SECONDS;
 #endif
 
                /* TODO. Add a configure test for the Linux
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index da23697..73873e0 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2982,6 +2982,9 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", 
(unsigned int)st.st_ex_dev, (u
 
                        /* Capabilities are filled in at connection time 
through STATVFS call */
                        additional_flags |= conn->fs_capabilities;
+                       additional_flags |= lp_parm_int(conn->params->service,
+                                                       "share", "fake_fscaps",
+                                                       0);
 
                        
SIVAL(pdata,0,FILE_CASE_PRESERVED_NAMES|FILE_CASE_SENSITIVE_SEARCH|
                                FILE_SUPPORTS_OBJECT_IDS|FILE_UNICODE_ON_DISK|


-- 
Samba Shared Repository

Reply via email to