The branch, master has been updated
       via  fb6f12b s4-server: avoid using environ as it is not portable
      from  3cef97a unit tests: remove trailling white spaces

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


- Log -----------------------------------------------------------------
commit fb6f12be5c3d5ad3e22943a780576a08f794f6a4
Author: Andrew Tridgell <[email protected]>
Date:   Mon Nov 1 09:47:12 2010 +1100

    s4-server: avoid using environ as it is not portable
    
    we can just use execv() instead, which passes through the environment,
    which is all we need
    
    Autobuild-User: Andrew Tridgell <[email protected]>
    Autobuild-Date: Sun Oct 31 23:53:49 UTC 2010 on sn-devel-104

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

Summary of changes:
 source4/smb_server/smb_samba3.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/smb_server/smb_samba3.c b/source4/smb_server/smb_samba3.c
index df85bcf..ee12480 100644
--- a/source4/smb_server/smb_samba3.c
+++ b/source4/smb_server/smb_samba3.c
@@ -39,7 +39,6 @@ static void samba3_smb_accept(struct stream_connection *conn)
        const char *prog;
        char *argv[2];
        char *reason;
-       extern char **environ;
 
        close(0);
        close(1);
@@ -65,7 +64,7 @@ static void samba3_smb_accept(struct stream_connection *conn)
        }
        argv[1] = NULL;
 
-       execve(argv[0], argv, environ);
+       execv(argv[0], argv);
 
        /*
         * Should never get here


-- 
Samba Shared Repository

Reply via email to