summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-10-28 17:15:28 +0000
committerJeremy Allison <jra@samba.org>1998-10-28 17:15:28 +0000
commit17621964344336c6303386c3c9e8a3e23b9e46e1 (patch)
tree276ae0a5cc782b07ed20ef8c92fb1e11f861706b
parent99430ce899c02b95ab3c577afff7f28c6d5c6c45 (diff)
downloadsamba-17621964344336c6303386c3c9e8a3e23b9e46e1.tar.gz
samba-17621964344336c6303386c3c9e8a3e23b9e46e1.tar.xz
samba-17621964344336c6303386c3c9e8a3e23b9e46e1.zip
Fix from thwartedefforts@wonky.org (slightly modified) to
fix username overwriting problem in security=share. Jeremy.
-rw-r--r--source/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index babdd2056c4..1d8ccd61eb6 100644
--- a/source/smbd/reply.c
+++ b/source/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);