s3: set native os according to Windows and NBT_ANNOUNCE_VERSION defines
commit666948c776948a8147501d2ba590bcd05e78458d
authorBjörn Jacke <bj@sernet.de>
Tue, 7 Jan 2014 14:57:50 +0000 (7 15:57 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 15 Jan 2014 00:48:30 +0000 (14 16:48 -0800)
tree12d5063436e6ac7097ea6a0f31e94edaffe5099f
parent4701e198957a6391f136824b844dc47a8191fb13
s3: set native os according to Windows and NBT_ANNOUNCE_VERSION defines

When the native os in sessionsetup is "Unix" then broken Konica Minolta
printers refuse to talk to those CIFS servers. Other CIFS servers also announce
themselves with native os Windows. Let's do the same to improve
interoperability with broken devices like those printers from Konica Minolta.
Thanks to Daniel Hoffmann for finding and reporting this Konika printer
brokenness.

https://bugzilla.samba.org/show_bug.cgi?id=10168

Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/sesssetup.c