1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

add version back to lanman string in sessetup reply

(This used to be commit dade462a168abe721c70022546109074961969b6)
This commit is contained in:
Gerald Carter 2003-04-29 13:28:48 +00:00
parent 281d95e2f3
commit ad9a3848a8

View File

@ -60,9 +60,13 @@ static NTSTATUS do_map_to_guest(NTSTATUS status, auth_serversupplied_info **serv
static void add_signature(char *outbuf) static void add_signature(char *outbuf)
{ {
char *p; char *p;
fstring lanman;
snprintf( lanman, sizeof(lanman), "Samba %s", VERSION );
p = smb_buf(outbuf); p = smb_buf(outbuf);
p += srvstr_push(outbuf, p, "Unix", -1, STR_TERMINATE); 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); p += srvstr_push(outbuf, p, lp_workgroup(), -1, STR_TERMINATE);
set_message_end(outbuf,p); set_message_end(outbuf,p);
} }