summaryrefslogtreecommitdiff
path: root/source3/smbd
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
commit3fcd6d69cb7df37b8169df66d23cba1ea7ce067a (patch)
tree21bbb9ad5d548c7a816478aee44d8b97be677015 /source3/smbd
parent838c5c485ffba94a1c74a4556e3e4a2b16020923 (diff)
downloadsamba-3fcd6d69cb7df37b8169df66d23cba1ea7ce067a.tar.gz
samba-3fcd6d69cb7df37b8169df66d23cba1ea7ce067a.tar.bz2
samba-3fcd6d69cb7df37b8169df66d23cba1ea7ce067a.zip
Fix from thwartedefforts@wonky.org (slightly modified) to
fix username overwriting problem in security=share. Jeremy. (This used to be commit 17621964344336c6303386c3c9e8a3e23b9e46e1)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
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);