summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-01 09:47:12 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-31 23:53:49 +0000
commitfb6f12be5c3d5ad3e22943a780576a08f794f6a4 (patch)
tree26e42a1214c9ffd9dc3d72bcdabeac33717487ff /source4/smb_server
parent3cef97ad0e7008e3732cb32348761a4482c772be (diff)
downloadsamba-fb6f12be5c3d5ad3e22943a780576a08f794f6a4.tar.gz
samba-fb6f12be5c3d5ad3e22943a780576a08f794f6a4.tar.bz2
samba-fb6f12be5c3d5ad3e22943a780576a08f794f6a4.zip
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 <tridge@samba.org> Autobuild-Date: Sun Oct 31 23:53:49 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb_samba3.c3
1 files changed, 1 insertions, 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