diff options
author | Gerald Carter <jerry@samba.org> | 2003-04-29 13:29:14 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-04-29 13:29:14 +0000 |
commit | 94102aea674caeeb4480c0e0bf330a55a11bb837 (patch) | |
tree | 40de0f1a96508058ef6728ea6807f6abc218f263 | |
parent | a60682e9ab98bdeaf1c216616fb3f50515e2cc23 (diff) | |
download | samba-94102aea674caeeb4480c0e0bf330a55a11bb837.tar.gz samba-94102aea674caeeb4480c0e0bf330a55a11bb837.tar.xz samba-94102aea674caeeb4480c0e0bf330a55a11bb837.zip |
add version back to lanman string in sessetup reply
(This used to be commit 4ab1909378695383e7e5bd20898392e6d2166969)
-rw-r--r-- | source3/smbd/sesssetup.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 25f9d424abc..3fa3fa411f6 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); } |