From fb6f12be5c3d5ad3e22943a780576a08f794f6a4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Nov 2010 09:47:12 +1100 Subject: 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 Autobuild-Date: Sun Oct 31 23:53:49 UTC 2010 on sn-devel-104 --- source4/smb_server/smb_samba3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source4/smb_server/smb_samba3.c b/source4/smb_server/smb_samba3.c index df85bcf900..ee12480c39 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 -- cgit