From 3fcd6d69cb7df37b8169df66d23cba1ea7ce067a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 28 Oct 1998 17:15:28 +0000 Subject: Fix from thwartedefforts@wonky.org (slightly modified) to fix username overwriting problem in security=share. Jeremy. (This used to be commit 17621964344336c6303386c3c9e8a3e23b9e46e1) --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index babdd2056c..1d8ccd61eb 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -597,7 +597,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int * working. */ - if((lp_security() != SEC_SHARE) || *user) + if((lp_security() != SEC_SHARE) || (*user && !guest)) pstrcpy(sesssetup_user,user); reload_services(True); -- cgit