The branch, master has been updated
       via  02a5078... Final part of jumbo patch for bug #7104 - "wide links" 
and "unix extensions" are incompatible.
      from  5d92d96... Introduce lp_safe_widelinks()

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 02a5078f1fe6285e4a0b6ad95a3aea1c5bb3e8cf
Author: Jeremy Allison <j...@samba.org>
Date:   Thu Feb 11 14:45:53 2010 -0800

    Final part of jumbo patch for bug #7104 - "wide links" and "unix 
extensions" are incompatible.
    
    Volker pointed out that the preexec scripts get passed the conn->connectpath
    as a parameter, so call canonicalize_connect_path() both *before* and after
    the preexec scripts. Ignore errors on the call before the preexec scripts,
    as the path may not exist until created by the preexec scripts.
    
    Jeremy.

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

Summary of changes:
 source3/smbd/service.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 4efa63e..45df7c1 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -893,6 +893,18 @@ connection_struct *make_connection_snum(struct 
smbd_server_connection *sconn,
                return NULL;
        }  
 
+       /*
+        * Fix compatibility issue pointed out by Volker.
+        * We pass the conn->connectpath to the preexec
+        * scripts as a parameter, so attempt to canonicalize
+        * it here before calling the preexec scripts.
+        * We ignore errors here, as it is possible that
+        * the conn->connectpath doesn't exist yet and
+        * the preexec scripts will create them.
+        */
+
+       (void)canonicalize_connect_path(conn);
+
        /* Preexecs are done here as they might make the dir we are to ChDir
         * to below */
        /* execute any "root preexec = " line */


-- 
Samba Shared Repository

Reply via email to