summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
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