summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-04-29 13:29:14 +0000
committerGerald Carter <jerry@samba.org>2003-04-29 13:29:14 +0000
commit94102aea674caeeb4480c0e0bf330a55a11bb837 (patch)
tree40de0f1a96508058ef6728ea6807f6abc218f263 /source3
parenta60682e9ab98bdeaf1c216616fb3f50515e2cc23 (diff)
downloadsamba-94102aea674caeeb4480c0e0bf330a55a11bb837.tar.gz
samba-94102aea674caeeb4480c0e0bf330a55a11bb837.tar.bz2
samba-94102aea674caeeb4480c0e0bf330a55a11bb837.zip
add version back to lanman string in sessetup reply
(This used to be commit 4ab1909378695383e7e5bd20898392e6d2166969)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/sesssetup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 25f9d424ab..3fa3fa411f 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -60,9 +60,13 @@ static NTSTATUS do_map_to_guest(NTSTATUS status, auth_serversupplied_info **serv
static void add_signature(char *outbuf)
{
char *p;
+ fstring lanman;
+
+ snprintf( lanman, sizeof(lanman), "Samba %s", VERSION );
+
p = smb_buf(outbuf);
p += srvstr_push(outbuf, p, "Unix", -1, STR_TERMINATE);
- p += srvstr_push(outbuf, p, "Samba", -1, STR_TERMINATE);
+ p += srvstr_push(outbuf, p, lanman, -1, STR_TERMINATE);
p += srvstr_push(outbuf, p, lp_workgroup(), -1, STR_TERMINATE);
set_message_end(outbuf,p);
}